OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: McFinnish on 27 May 2004, 16:36:17

Title: firing commands
Post by: McFinnish on 27 May 2004, 16:36:17
I'am making an mission, where I want to units to be forced to get prone and after that no AI would fire. How can I stop AI from firing? I don't want to take their weapons and mags, is there any better way?
Title: Re:firing commands
Post by: alimag on 27 May 2004, 17:03:45
Hi,

To force the units to get prone:

{_x setUnitPos "DOWN"} forEach units groupName

To order hold fire:

groupName setCombatMode "GREEN"

Where 'groupName' is the name of the group...

Cheers