OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: killjoy73au on 16 Jan 2005, 00:00:07
-
hey this is pretty much basicville but how do you make it so a soldier stands still and doesnt run off anywhere or take cover when they are in combat
-
Unitname setbehaviour "careless"; doStop unitname or {_X setBehaviour "careless"} forEach units groupname; {doStop _X} forEach units groupname.
But units won't fire if they are in careless mode and the dostop only works when the units aren't engaged.
Maybe this is what your'e looking for ;)
http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=18098
-
In certain circumstances the command disableAI can also be useful. Comments in the online comref in the Ed Depot. Also setUnitPos.