OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Mr.Peanut on 12 Dec 2005, 21:45:37

Title: Leader in a group array
Post by: Mr.Peanut on 12 Dec 2005, 21:45:37
Is the present leader of a group the lowest (living) index of the group array?
Title: Re:Leader in a group array
Post by: General Barron on 13 Dec 2005, 11:41:29
I don't think this is always the case, although in general it should be true. Using the 'join' command in certain situations might mess this up. Two functions that might be of interest:

squad number:
http://www.ofpec.com/editors/funcref.php?filter_func=60

squad order:
http://www.ofpec.com/editors/funcref.php?filter_func=61