OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: dematti on 05 Oct 2007, 19:40:36
-
Hi,
When groups get in a firefight they keep moving towards their waypoints.
Is it possible to halt a squad when contact is made, and resume when the firefight is over?
Without beeing the leader of the squad.
Hopefully a radio trigger can solve this?
Thanx
-
Well, you can stop a group by a large number of different commands.
One is simple enough:
disableAI "MOVE" (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=d#disableAI) + enableAI "MOVE" (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=d#enableAI)
another is unit STOP true (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#stop)
However the real question you want to ask is: "How do I know when contact is made?" ;)
I don't know. Off the top of my head: a big trigger which is activated by "OPFOR spotted by BLUFOR" in the area that the group is moving in. Alternatively if you've got complicated set-ups, you can start messing around with i.e. nearTargets (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=n#nearTargets) and knowsAbout (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=h#knowsAbout).
Hope that gives some ideas. :good:
Wolfrug out.
-
ok got that working.
But how do i stop a squad then?
got it: stop false :clap:
thanks
-
"How do I know when contact is made?"
... setting the trigger to detected by should activate the trigger when contact is made