Difference between revisions of "DCS func getPoint"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
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]] |