OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 29 Oct 2002, 22:59:16
-
I am making a quick multiplayer mission which sort of resembles a Black Hawk Down mission (except it is in the road between Laruns and Levie).
I want the battle to be sort of set up in a certain way. If I leave the units in their spots, the enemy M2s will just mop up the units.
I know of two ways of keeping them like "nulled", but i dont know which one is more effective or if there is another way to do it. I could do a mass SetPos thing, but Id need some help getting it to work. I could also make a script that makes units captive or on the "Never Fire" thing.
-
A quick way to do that would be to use a trigger:
Trigger
Radius: Covering all the units involved
Condition: Anybody (repeatedly)
Condition: pacify
OnActivation Field: "_x setcombatmode ""blue""" foreach thislist
OnDeactivation Field: "_x setcombatmode ""yellow""" foreach thislist
Then if you have your variable (I've used pacify here), set that to true and everyone will stop firing. Set it back to false again to start the battle ;)