OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pr0ph3t on 08 Aug 2006, 17:38:30
-
Is there a way to force units to move in no matter what? It seems that the units won't move in if they feel overwhelmed they'll keep their distance, I want them to run through like brain dead lambs.. (looks nice when you're running into battle and ppl are dropping around you). So is there a way to make a unit obey a waypoint no matter what?
-
Put this in the group leader's init field:
{_x allowfleeing 0} foreach units group this;
Also, set the speed mode of the group to FULL in the waypoint.
You may also want to set the unit position of the units to "UP", this will mean they won't get down and crawl all the way. Put the following code in the group leader's init field to make the soldiers stand up:
{_x setunitpos "UP"} foreach units group this;
-Pilot
-
If I have a specific group that I would like to order with radio alpha to all "setunitpos" what command would I have to enter in the activation field to do it?
Isn't there some online reference for all these commands? I hate having to come here and bug you guys everytime I can't figure something out :-).
-
there is. (http://www.ofpec.com/COMREF/index.php)