DCS func getDispatcherTowerPos
From DCS World Wiki - Hoggitworld.com
Envrioment: | Mission Scripting | ||
Function: | getDispatcherTowerPos | Added with: 2.9.6 | |
Member Of: | Airbase | ||
Syntax: | table Airbase.getDispatcherTowerPos(Class Self ) | ||
Description: | Returns a table of vec3 objects corresponding to the passed value. Seems to only ever return a single object "Tower" object. Have been unable to get it to work with other types.
| ||
Return Value: | table | ||
Return Example: | { ["pos"] = { ["y"] = 30.01003074646, ["x"] = 11039.798828125, ["z"] = 367775.40625, }, } | ||
Examples: | Adds the vec3 position of every tower belonging to a blue airbase to a list.
local ab = coalition.getAirbases(2) local everyBlueTowerLocation = {} for i = 1 , #ab do table.insert(everyBlueTowerLocation, Airbase.getDispatcherTowerPos(ab[i])) end | ||
Related Functions: | Airbase Functions: getCallsign, getUnit, getID, getCategoryEx, getParking, getRunways, getTechObjectPos, getDispatcherTowerPos, getRadioSilentMode, setRadioSilentMode, autoCapture, autoCaptureIsOn, setCoalition, getWarehouse, | ||
Notes: | From DCS 2.7.0 to 2.9.6 this function was Airbase.getTechObjectPos. That function was effectively removed and renamed to getDispatchTowerPos |