Home   Help Search Login Register  

Author Topic: How Do You Change What Leader A Group Has?  (Read 588 times)

0 Members and 1 Guest are viewing this topic.

Alex

  • Guest
How Do You Change What Leader A Group Has?
« on: 07 Mar 2004, 12:36:51 »
Hi All,
        I Wan't Some Men To Get Into A Chopper With An Officer As Leader Then Fly Somewhere, Get Out And Then Have Another Different Officer As Their Leader. How Would I Do This?
Thanks,
Alex.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How Do You Change What Leader A Group Has?
« Reply #1 on: 07 Mar 2004, 13:57:46 »
Use this code when you want it to happen.   Syntax not guaranteed and I haven't tested it, but it should work.    Make sure leader2 is the second highest ranking loon in the group, so that he takes over when leader1 leaves.

[leader1] join grpNull
[leader1] join leader2

Plenty of reviewed ArmA missions for you to play

Alex

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #2 on: 07 Mar 2004, 14:08:50 »
sorry mate where do i put that?

BibiPhoque

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #3 on: 07 Mar 2004, 14:11:18 »
Wherever you want it to happen ^_^

Like this in an OnActivation field of a waypoint for example :

[leader1] join grpNull ; [leader1] join leader2

Alex

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #4 on: 07 Mar 2004, 14:12:39 »
Right Cool Thanks Mate.

Alex

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #5 on: 07 Mar 2004, 14:33:12 »
Only The Officer Joins My Team I Wan't The Officer And His Group To Join My Team.

BibiPhoque

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #6 on: 07 Mar 2004, 14:44:05 »
Then you juste have to remove the [] :

leader1 join grpNull ; leader1 join leader2

But I'm not 100% sure about that =)

Alex

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #7 on: 07 Mar 2004, 14:49:52 »
Cool I'll Try It Thanks

BibiPhoque

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #8 on: 07 Mar 2004, 14:57:55 »
If that doesn't work, try that :


"_x join grpNull" forEach units leader1 ; "_x join leader2" forEach units leader1

Alex

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #9 on: 07 Mar 2004, 14:59:11 »
Ok Thanks.

Alex

  • Guest
Re:How Do You Change What Leader A Group Has?
« Reply #10 on: 07 Mar 2004, 15:09:53 »
That Doesn't Work...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How Do You Change What Leader A Group Has?
« Reply #11 on: 07 Mar 2004, 15:39:45 »
The join command takes an array as it's first argument:  therefore you must use square brackets [ ] or an array.   Try

"[_x] join ......

The lesson is, always[/i] check the syntax in the command ref.     The vast majority of answers in the forum are fundamentally correct (like BibiPhoque's here):  however, many (especially mine) contain minor errors of syntax.     It is not the duty of the answerer to check these details:  it is the duty of the questioner.

In any case you shouldn't use a command unless you understand it.   If you have read the command ref (both online version and unofficial version) and don't understand a command, by all means ask here.
Plenty of reviewed ArmA missions for you to play