OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Judge856 on 21 Jun 2003, 03:51:38
-
Hi all, me again
Does anyone know why....
_x setcombatmode "RED"
wont work in a trigger when anyone is present? Because I can't for the life of me understand it.
Thanks in advance...
PS
I did search this, because I've saw it not too long ago, but I can't seem to find it either :-[
-
I thought I'd explain it abit more. I'd like all the units on the map to start shooting at the opposition when the trigger is activated.
+ if I add this.....
"_x Allowdammage False" foreach (_unit) will it work? <--- for a cutscene
-
Oh, basically, I want to make it look ilke theres a viscious battle going on from both sides of the bridge in Nagova. Problem is, only tanks fire at each other and the men do nothing but crawl about. I'm looking for them to be shooting at anything that moves kinda thing.
-
Err... what is _unit exactly? ;)
To get your combatmode line applied to all units within a trigger radius, you could use this:
"_x setcombatmode {RED}" foreach thislist
in the triggers onactivation line (make sure it is a 'present' trigger though).
As for allowdamage, I'm afraid you will have some problems as that command was made obselete (eg. doesn't work) after v 1.0 ;)