OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SolidSnake22 on 16 Jan 2003, 22:46:36

Title: Help with sitting units
Post by: SolidSnake22 on 16 Jan 2003, 22:46:36
I got 4 Russian soldiers sitting around a fire, i use a script for this that loops so the units sit there for ever.

I have a trigger that sets of the alarm if the Us player is detected, my problem is:

How do i exit the script and get them to stand up and fight?

Help Anybody? 8)
Title: Re:Help with sitting units
Post by: Goering88mm on 17 Jan 2003, 07:27:00
maybe you shouldnt use a script.  You could put in their init field:

this setbehaviour "CARELESS"; this switchmove "EffectStandSitDown"

this would make them not move and stay in the sitting down position. In the trigger to make them get back up and to fight the incoming US man, just put in the On Activation of the trigger:

unitname setbehaviour "COMBAT"
unitname is the name of the russian soldier name around the fire

hope this helps  ;)
Title: Re:Help with sitting units
Post by: SolidSnake22 on 17 Jan 2003, 20:49:13
Tryed this, but they get up again after some seconds.
Any idea?
Title: Re:Help with sitting units
Post by: O Neil on 20 Jan 2003, 04:00:13
this setbehaviour "safe"; this switchmove "effectstandsitdown"

And DON'T FORGET to make the waypoint that is on him SAFE (It helps)