OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: terran4999 on 26 Dec 2008, 01:44:25
-
hey
How do you make a trigger activate when a unit has joined a group. I want to do this without WP's
-
Condition:
unit in (units group)
-
Ok, i keep getting a error. Here is what i did, first i name my group that will be performing the capture operation. In the Init of group leader I type:
east1=group this
then I name the unit i am trying to rescue POW1
In the condition field of trigger i type POW1 in (east1)
and then i get the following error message
(http://h1.ripway.com/terran4999/error2.jpg)
-
In the init of the groupleader try:
east=group this; east1=[]; {east1=east1+ [_x]} foreach east;
Hope that helps!
Luke
-
Actually, terran, if you'd just followed the example given you'd've been fine ;)
POW1 in (units east1)
east1 = a group
(units east1) = an array of all the units in the group east1
the command "in" needs an array most often, so you need to use the units command to get that. :good:
Wolfrug out.
-
Ok thanks, problem solved