OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Judge856 on 24 May 2003, 04:48:33

Title: Another sitting down
Post 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
Title: Re:Another sitting down
Post by: Mujahedeen on 24 May 2003, 05:34:00
Hi!

try to use: t1 switchmove "EffectStandSitDown"

cheers...
Title: Re:Another sitting down
Post by: _hammy_ on 24 May 2003, 05:34:23
you'll have to make a loop in a script:

Code: [Select]
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
Title: Re:Another sitting down
Post by: Judge856 on 24 May 2003, 14:30:39
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
Title: Re:Another sitting down
Post by: Judge856 on 25 May 2003, 05:02:10
Guys, does anyone know the answer to my problem?
Title: Re:Another sitting down
Post by: macguba on 25 May 2003, 11:24:54
On activation:    "_x setcombatmode {red}" forEach thislist

syntax not guaranteed.