MIST getLeadPos

From DCS World Wiki - Hoggitworld.com


mist.getLeadPos

Added with: Mist 2.0
Description
Returns a vec3 coordinate of the first unit in a specified group. group can be either a group table or the group name.
Syntax
vec3 mist.getLeadPos(string/table groupName/groupTable )
Valid Input Values:
group = 'myGroup'

group = Group.getByName('myGroup')

Return value:
vec3
Return example:
vec3
Usage Examples:
Places a smoke marker on the leader of a group in order to avoid friendly fire incidents because some people can't help themselves. (Also see Tiger 1-1)

 do
   trigger.action.smoke(mist.getLeadPos('myGroup'), "Orange")
 end

Notes:
Related Functions
getGroupData, getCurrentGroupData, getGroupPoints, getGroupRoute, getLeadPos, getAvgPos, getPayload, getGroupPayload, randomizeGroupOrder

Scripting Engine

MIST Root Page