OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 21 Jul 2008, 18:45:37

Title: POW to join Blufor squad SOLVED
Post 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
Title: Re: POW to join Blufor squad
Post by: Luke on 21 Jul 2008, 19:21:58
Crowey,

Did you try "OnAct: mypow join (group group_leader )"

that way, if the leader dies, the pow will still join the group.

Luke
Title: Re: POW to join Blufor squad
Post by: Wolfrug on 21 Jul 2008, 20:46:44
Name the group instead, and then use the leader command:

Code: [Select]
[pow] join (leader groupName);
You name the group by putting something like:

Code: [Select]
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.
Title: Re: POW to join Blufor squad
Post by: Crowey on 21 Jul 2008, 21:50:26
great answers guys thank you