DCS func getPoint: Difference between revisions
From DCS World Wiki - Hoggitworld.com
m 1 revision imported |
No edit summary |
||
| Line 42: | Line 42: | ||
[[DCS_Class_Spot|'''Spot Functions:''']] {{listofScriptingSpotFuncs}} | [[DCS_Class_Spot|'''Spot Functions:''']] {{listofScriptingSpotFuncs}} | ||
|examples= | |examples= The following prints the target coordinates to the log. | ||
local targetCoord = Unit.getByName('killMeNow'):getPoint() | |||
env.info('The World Coordinates of the target are: X: ' .. targetCoord.x .. ' Y: ' .. targetCoord.y .. ' Z: ' .. targetCoord.z) | |||
|notes= | |notes= | ||
}} | }} | ||
[[Category:Class Functions|getPoint]] | [[Category:Class Functions|getPoint]] | ||
