OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ilkka on 08 Jan 2003, 13:30:15

Title: Group leader
Post by: Ilkka on 08 Jan 2003, 13:30:15
How can i change group leader during the mission?
Title: Re:Group leader
Post by: Tomb on 08 Jan 2003, 16:00:30
[grpLeader] join GrpNull; [Grp_array] join BobNewGuy


where the array is pre-defined.  :)


( ps.  >> array = [unit1,unit2 etc...] <<   just in case )  :-*
Title: Re:Group leader
Post by: Ilkka on 08 Jan 2003, 18:14:13
That didn`t work completely. [grpLeader]-do i have to put name of the guy i want to become leader or do i put his name in the end.
Title: Re:Group leader
Post by: Tomb on 08 Jan 2003, 18:43:10
[unitName] join GrpNull  :)


grpLeader was just whatever unit name you typed in the leader's name field.


 ;D Nevermind, try this instead  :o if you're having trouble :


name yer original leader ROB and put this in his INIT field :

robsters = units group this

And The soon-to-be leader should be named BOB.

 :D Then your trigger could go :

"[_x] join bob" foreach robsters; [rob] join grpNull
Title: Re:Group leader
Post by: Ilkka on 09 Jan 2003, 07:34:37
Oops! Still problems. Leader of the group changes, but second highest ranked man in my group take leader jobs. I just don`t know how to make myself a leader during the mission. And old leader always exit the group when i change new leader.
Title: Re:Group leader
Post by: RedLion on 10 Jan 2003, 19:44:43
This sounds like a great idea. Now, would it work if you have for example, 5 west squads and you want to jump from leader to leader? Moreover, can it work in a mp setting?

Best regards,  :)
RedLion