OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Desdichado on 17 Apr 2003, 12:16:40

Title: Group B join A regardless of name of leader?
Post by: Desdichado on 17 Apr 2003, 12:16:40
Hi there...


I was wondering how to make to seperate groups (in this case: Delta and Hotel) join when a certain trigger is activated by presence.

I know how to make them join when they are named.

i.eg.

Code: [Select]
[sniper1, sniper2] join usmc1
But if usmc1 died before this trigger was activated they wouldn't join.

So, how to join to groups without use of waypoints and names. I want to call this from a script.


Thx,

des,OUT!
Title: Re:Group B join A regardless of name of leader?
Post by: Desdichado on 17 Apr 2003, 13:38:23
Actually I found a solution. I just named the the first group and then named the players I wanted to join later in the mission.

Like this, init for leader of group:

Code: [Select]
MyGroup=group this

And for the triggers activation I called a script containg only this:

Code: [Select]
[sniper1, sniper2] join leader MyGroup

Thx to this board and the search function...    ;D




des,OUT!