OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Winters on 26 Jul 2003, 20:21:46

Title: switchmove probby...
Post by: Captain Winters on 26 Jul 2003, 20:21:46
_unit = _this select 0

#loop
_unit switchmove "EffectStandTalk"
goto "loop"


that's a little script i whipped up to make it look like a unit is talking for a long time, but when the unit dies he continues to play the animation... How can i make it to where the animation stops after he dies?

Tanks! 8)
Title: Re:switchmove probby...
Post by: LCD on 26 Jul 2003, 20:25:14
hey man wuzup ?

its simple Q :P watup w/ ur scriptin skilz ? :P

_unit = _this select 0

#loop
_unit switchmove "EffectStandTalk"
? not alive _unit : _unit playmove "null"; _unit switchmove "null"; exit
goto "loop"

::)

LCD OUT

Title: Re:switchmove probby...
Post by: Captain Winters on 26 Jul 2003, 20:37:22
Nothin really, I had the script just like you had it down there, but i dint know what animation 2 play  :P
Thanks for the help man

Tanks! 8)