OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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)
-
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 ;)
-
Tryed this, but they get up again after some seconds.
Any idea?
-
this setbehaviour "safe"; this switchmove "effectstandsitdown"
And DON'T FORGET to make the waypoint that is on him SAFE (It helps)