Difference between revisions of "MIST getLeadPos"
From DCS World Wiki - Hoggitworld.com
(No difference)
|
Latest revision as of 22:58, 13 April 2018
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, getGroupTable getGroupPoints, getGroupRoute, getLeadPos, getAvgPos, getPayload, getGroupPayload, randomizeGroupOrder, groupIsDead |