OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Judge856 on 24 May 2003, 04:48:33
-
Hi,
I'm trying to get a unit to sit down throughout the whole mission, and im using
t1 playmove "EffectStandSitDown" - t1 being the unit
but he'll sit down, then stand up again, how can I get him to sitdown the whole mission?
thanks in advance
-
Hi!
try to use: t1 switchmove "EffectStandSitDown"
cheers...
-
you'll have to make a loop in a script:
timer = 0
#loop
timer = timer + 1
~1
t1 playmove "EffectStandSitDown"
?(timer >= 5):exit
goto "loop"
exit
not sure if code is 100% correct, i haven't edited in ofp for a while. also not sure if you still can loop animations, i used this code in ofp version 1.20 before all the other versions came out.
Edit, im not sure if switchmove keeps the dude in teh animation, but it puts teh dude in the position without the animation part
-
Thanks!!
Now one more tiny question in a trigger area which is
West detected by East
INIT: set all east units combatmode to combat;fireatwill
I can't seem t get it properly, I've used a couple commands out of the Ref guide but I'm not sure I'm using them right or whatever.
thanks again in advance
-
Guys, does anyone know the answer to my problem?
-
On activation: "_x setcombatmode {red}" forEach thislist
syntax not guaranteed.