OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 27 Jan 2004, 23:43:17

Title: Joining up units
Post by: pazuzu on 27 Jan 2004, 23:43:17
Well I tried to find a post on this before I made a new one but with no success...

I need to know how to join up other units. In the map I'm making I've added more units with trigger & in the "On activation" field I have [p7] join p1; [p8] join p1

Now this command works for leader but if leader dies & anyone else tries to get these units to join they cant do it.

How do I make it so anyone on the Boss team can join up other units?

Thanks
Title: Re:Joining up units
Post by: slowworm on 28 Jan 2004, 02:55:46
Hi pazuzu!

Let them join the group of the boss, not the boss. So if the boss dies, they will join the unit which became the new groupleader.

-
Write in the init-line of the group leader:
bossgroup = group this

-
In your trigger use
[unit] join bossgroup

This is to let one unit join the group. To let several units join the group use:
[unit1, unit2, ...] join bossgroup


cu slowworm

Title: Re:Joining up units
Post by: pazuzu on 29 Jan 2004, 04:41:35
Worked like a charm.

Thank you.