OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: DjTano on 22 Jun 2007, 17:00:34
-
Hey guys,
i would like to set a trigger that is activated if a group of soldiers is attacked (they dont need to be killed to activate it), how do i do that?
-
you may check the behaviour of group leader
condition:
behaviour leader mygroup == "COMBAT"
-
huh, wht do you mean?
-
all units have attributes, such as skill, or weapons, or side, or face, etc. these attributes can be set, and they can also be detected.
one of those attributes is behaviour, another is combatmode. you can look both of these up in the comref.
i also suggest you take a look through the faq, because a lot of the questions you've been asking recently have answers in there. :good:
-
nono, i want it this way:
i attack an enemy squad (no need to kill them)
that activates a trigger
-
Did you not understand the solution supplied by Mandoble?
Planck
-
A group switches to COMBAT behaviour once engaged. So if they start in either SAFE, AWARE or STEALH you can detect when they enter combat.
-
ok, so i put "behaviour leader mygroup == "COMBAT"" in the leader, and wht would tht help?
i want this:
if this unit is engaged then trigger is activated
your solution seems to just put my unit in combat mode...
WAAAAAAAAAAAAAAAIT
maybe i understood now, ill go try it out...
-
In the leader?
In the condition of your trigger.
-
yea i got it to work, sry for the hassle