OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Scratchdat on 04 Sep 2002, 19:56:31

Title: V. Quick Question: Hold Fire
Post by: Scratchdat on 04 Sep 2002, 19:56:31
How can I make a soldier hold fire (through a script)?
Title: Re:V. Quick Question: Hold Fire
Post by: Artak on 04 Sep 2002, 20:01:54
Hi! ways are many but you need t oset his combat mode.

UnitName SetCombatMode "Mode"

"BLUE"=Never Fire
"GREEN"=Hold Fire
"WHITE"=Hold Fire, Engage At Will
"YELLOW"=Open Fire
"RED"=Open Fire, Engage At Will

Put this into a wp's or a trigger's on activation field and there you go (or in a script)  ;)