Jump to content
Sign in to follow this  
eisa01

Switchmove problems

Recommended Posts

I need some civillians (hostages) to get their hand on their head. Im trying to do it with switchmove but it just doesn't work. I need em to use FXStandSurUniv as the animation how do i do it??

Share this post


Link to post
Share on other sites

hello,

imho fx stuff just works while executed in scripts. just write it in a script (hostage.sqs or whatever) and let the civilians execute it. hope it works.

greetz

snowflake

Share this post


Link to post
Share on other sites
Guest jacobaby

Put all the civilians into a group, called say "Hostages"

Then in your trigger put this line;

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

"_x switchmove {fxstandsurv}" foreach units hostages

<span id='postcolor'>

Just check the anim name is correct.

TJ

Share this post


Link to post
Share on other sites

thx now i just need em to fall down when they get shot smile.gif

Share this post


Link to post
Share on other sites
Guest jacobaby

? (getdammage civvyguy)>=1:civvyguy switchmove ""

Share this post


Link to post
Share on other sites

crazy.gif didnt get that to work  sad.gif heres the whole script

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x switchmove {FXStandSurUniv}" foreach units hostages

? (getdammage h1)>=1:h1 switchmove ""

? (getdammage h2)>=1:h2 switchmove ""

? (getdammage h3)>=1:h3 switchmove ""

? (getdammage h4)>=1:h4 switchmove ""

? (getdammage h5)>=1:h5 switchmove ""

<span id='postcolor'>

sorry for beein such a noob with scripts  crazy.gif

Share this post


Link to post
Share on other sites

"_x switchmove ""FXStandSur""" foreach units group mygroup should do the trick, but it seems you have to use it in either a waypoint or a trigger. (watch the double ")

Be careful with this command, because these units will remain forever in this position, if you want them to die or sth you will have to do another switchmove, e.g. "FXSTAngel"

The best thing to do is to use it in a script as someone already posted.

hth

Share this post


Link to post
Share on other sites

#START

not (alive myCiv) : goto "CIVDEAD"

~0.01

goto "START"

#CIVDEAD

myCiv switchmove "FXStandSurDead"

This works for me

biggrin.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×