OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terran4999 on 12 May 2008, 06:54:48
-
Hey
How do you make a unit/group stop and go from its assigned WP's like in those escort missions. I know to make a unit stop is
dostop unitname
i dont know how to make a unit move again
-
You may use lockWP (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=l#207) to avoid the unit or group will proceed to next waypoint, and meanwhile you may order the group to move anywhere else. When the task is done, use the same command to unlock waypoints, so the unit or group will proceed with next waypoint.
-
So i created a unit call "sold" and gave him a few WP's and then I created two radio activatied trigger
on with:
sold lockWP true
the other with
sold lockWP false
is that correct??
-
Yes.
-
Yeah, that didn't work. Do anyone have any ideas. :blink:
-
What didnt work? Which was the expected effect?
-
the command "sold lockWP true/false" in the radio triggers didn't work. the unit just kept moving
-
I'm not sure about this, but have you tried using the DisableAI Command (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=d#105)
For example:
aP DisableAI "MOVE"
-=GC=-Fungus1999
-
That worked to stop the unit. How do you make it move again??
I am just trying to create an escort mission where i get the ability to radio my escort truck to stop and go as i clear the path like in the campaign. :P :P
-
I believe:
aP enableAI "MOVE"
-
I believe enableAI is an ArmA only command.
Planck
-
(enable/disableAI "move") command would not work; has anybody made an escort mission before that would know how to radio units to move and stop
thanks :clap:
-
LockWP will work, but not if the unit is between WPs. If lockWP TRUE and the unit is between WPs then the unit will stop when it reaches its next WP. Plus if you read the COMREF entry for the lockWP command, you will see it needs to be applied to the unit's group, not the individual.
Trygroup sold lockWP TRUE
-
Never mind, I solved it by extracting the missions in the campaign and figured out what they did. Thanks for all your inputs :good: :good: :good: