Home   Help Search Login Register  

Author Topic: Joining up units  (Read 1146 times)

0 Members and 1 Guest are viewing this topic.

pazuzu

  • Guest
Joining up units
« 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

slowworm

  • Guest
Re:Joining up units
« Reply #1 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


pazuzu

  • Guest
Re:Joining up units
« Reply #2 on: 29 Jan 2004, 04:41:35 »
Worked like a charm.

Thank you.