OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 21 Jul 2008, 18:45:37
-
Hi guys i know how to basically make a ai pow join groups with one unit that ive names but what happens if that one unit gets killed and I still need the pow to join the rest of the squad that hasnt been killed. i use this "onAct: [unitname] join unitname" and that works fine as long as the leader which iv names doesnt die but in some cases he will so what can i do..... simple format plzzzz newbie non scripter here, lol
-
Crowey,
Did you try "OnAct: mypow join (group group_leader )"
that way, if the leader dies, the pow will still join the group.
Luke
-
Name the group instead, and then use the leader command:
[pow] join (leader groupName);
You name the group by putting something like:
groupName = group this
Into the initialization (NOT the description!) field of any member of the group - typically the leader. That way the unit named pow will always join the leader of the group, which might change :)
Wolfrug out.
-
great answers guys thank you