OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ilkka on 08 Jan 2003, 13:30:15
-
How can i change group leader during the mission?
-
[grpLeader] join GrpNull; [Grp_array] join BobNewGuy
where the array is pre-defined. :)
( ps. >> array = [unit1,unit2 etc...] << just in case ) :-*
-
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.
-
[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
-
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.
-
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