OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: killjoy73au on 16 Jan 2005, 00:00:07

Title: making units stand still
Post 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
Title: Re:making units stand still
Post by: Dane on 16 Jan 2005, 00:10:37
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
Title: Re:making units stand still
Post by: macguba on 16 Jan 2005, 01:08:17
In certain circumstances the command disableAI can also be useful.    Comments in the online comref in the Ed Depot.   Also setUnitPos.