OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Dweebfire on 15 Nov 2002, 20:23:57

Title: Question re: Unit Identity
Post by: Dweebfire on 15 Nov 2002, 20:23:57
I'm not sure how to describe this question but I'll give it a shot.  How do you get the game to recognize who the current leader of your multiplayer squad is?

In other words.  I want to assign a script to allow the squad leader to call in artillery.  Unfortunately, he takes a round in the face and is down for the count.  So the next guy takes over command.  How can I make the script exec on the CURRENT squad leader at the time the artillery is needed?  Clear as mud?

In other words, what is the games reference for the current squad leader?

Title: Re:Question re: Unit Identity
Post by: Sui on 15 Nov 2002, 23:47:38
Hey there Dweebfire,

Try:

(leader group)

when referring to your unit. That will return the current (Living) leader of your group. If the old leader dies, a new leader is assigned (next ranking unit)
Title: Re:Question re: Unit Identity
Post by: Dweebfire on 16 Nov 2002, 00:41:53
Thank you.  I figured it was something simple.  :)