OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: keou on 05 Nov 2002, 23:40:21

Title: Group Reinforcements (with respawn)...
Post by: keou on 05 Nov 2002, 23:40:21
Can anyone point me in the right direction for creating a script that will allow two groups to join?  I've tested a few, but they are all written with a specific soldier name in mind.  Once dead and respawned, the "name" of your player changes.  Is there any way to tag a script to the group rather than the soldier?  Any help would be greatly appreciated.  :-[
Title: Re:Group Reinforcements (with respawn)...
Post by: Dinger on 07 Nov 2002, 20:30:05
you mean something like:

in the init.sqs:
mygroup = group maingroupleader
...

respawn:
player join mygroup

or for two groups:
"_x join mygroup" foreach units MyOtherGroup


?
Title: Re:Group Reinforcements (with respawn)...
Post by: keou on 07 Nov 2002, 22:19:30
Thanks...I will work with that and see what I can create