Page 1 of 1

Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 5:56 am
by Lagomorphia
I know its possible to make things move with ZeroEditor. I also know its possible to turn command posts on and off. So is it possible to animate a droid dispenser to fly into a hanger with some sort of flame effect moving with it (so it looks like it's flying) then turn off the flame, have it drop to the floor, then start spawing droids while remaining destructible?

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 11:37 am
by Fiodis
Yes.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 12:42 pm
by Lagomorphia
How?

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 12:52 pm
by mswf
Have the dispenser come flying in with an activated propulsion effect. Then, when it has finished it's landing animation you made in zeroeditor, kill the effect via you .lua. Then activate the CP.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 1:02 pm
by Executer94
Fiodis wrote:Yes.
I really don't want to be unfriendly but why just this short yes it really doesn't help.

I know it's a simple question for you and there are tuts which explane it.

Here is a tut for "moving objects" in ZE
http://www.gametoast.com/forums/viewtop ... =27&t=5865

For making flames just take the "hoth_effect" from the hot odf.
And change prop_steamgrate to a good effect which makes flames.



Take me 5 min to write and search.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 1:37 pm
by Fiodis
Executer94 wrote:
Fiodis wrote:Yes.
I really don't want to be unfriendly but why just this short yes it really doesn't help.
I know it's a simple question for you and there are tuts which explane it.
Take me 5 min to write and search.
Then by inference it would take him five minutes to search and write. There are tutorials that explain the various aspects of this. Forgive me for thinking that Lagomorphia would take the initiative and try to find out for himself.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:07 pm
by Lagomorphia
How do you 'kill' the effect? The documentation isn't helping much.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:13 pm
by mswf
You "kill" the emitter of that effect.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:21 pm
by Fiodis
Except, in this case, the emmiter is the command post object.

My advice: pre-place the CP at where you want it to land. Then place another "dummy" object, which sends out the effect. Use LUA code to kill the CP at the start of the match, fly the dummy in, kill the dummy and respawn the CP.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:24 pm
by mswf
It's possible to do what I said; If you'd have 2 separate objects, the not yet activated cp and the emmitter and animate those 2 as a group.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:35 pm
by Lagomorphia
I now have the droid dispenser alone moving and dropping. I assume this is the dummy?

How do you get the LUA to recognize when the emitter has reached the end of its animation and when the dispenser has hit the ground?

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:38 pm
by mswf
Kill the animation with the function that checks whether or not the animation is complete.

Re: Droid Dispenser Boarding RC Style

Posted: Sun Feb 28, 2010 3:45 pm
by Lagomorphia
the function that checks whether or not the animation is complete.
So is this script okay (the function I don;t know is represented by *)
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

KillObject (CPDS)
end

On* (DroidDispenserDrop1)
RespawnObject (CPSD)
KillObject (DroidDispenserDummy)
end

Re: Droid Dispenser Boarding RC Style

Posted: Wed Mar 03, 2010 9:01 am
by Executer94
Fiodis wrote:
Executer94 wrote:
Fiodis wrote:Yes.
I really don't want to be unfriendly but why just this short yes it really doesn't help.
I know it's a simple question for you and there are tuts which explane it.
Take me 5 min to write and search.
Then by inference it would take him five minutes to search and write. There are tutorials that explain the various aspects of this. Forgive me for thinking that Lagomorphia would take the initiative and try to find out for himself.
Also a point of view. He has to learn that.

Re: Droid Dispenser Boarding RC Style

Posted: Sat Mar 06, 2010 5:47 am
by Lagomorphia
Forgive me for thinking that Lagomorphia would take the initiative and try to find out for himself.
I did. I read the docs and the relevant ones were useless. They just waffled on in code about something that had practically nothing to do with the title. So, having failed to work it out myself, I asked. Is that not what the modding forum is for?

Re: Droid Dispenser Boarding RC Style

Posted: Sat Mar 06, 2010 6:56 am
by DarthD.U.C.K.
first Docs =/= useless is a statement of somebody who either doesnt want to understand them.
they may not have a chapter which explains exactly how to do what you want to know though....

the modding forum is for asking questions regarding swbf2-modding which werent answered before and not for letting other people do the work for you e.g. searching for things you could have searched yourself or explaining things which have been answered several times before

but about the emitter: start a timer when the anim starts which ends when the anim ends and then kill the emitter and the dummy and spawn the actual object when the timer elapses

(that i dont write the actual code means that you can the needed events and commands easily in the documentation or the faqthread or other topics)