Difference between revisions of "DCS func setPoint"
From DCS World Wiki - Hoggitworld.com
(One intermediate revision by the same user not shown) | |||
Line 42: | Line 42: | ||
local ray = Spot.createLaser(jtac, {x = 0, y = 1, z = 0}, target:getPoint(), 1337) | local ray = Spot.createLaser(jtac, {x = 0, y = 1, z = 0}, target:getPoint(), 1337) | ||
local function updateRay() | local function updateRay() | ||
− | if target | + | if Object.isExist(target) then |
ray:setPoint(target:getPoint()) | ray:setPoint(target:getPoint()) | ||
timer.scheduleFunction(updateRay, {}, timer.getTime() + 0.5) | timer.scheduleFunction(updateRay, {}, timer.getTime() + 0.5) | ||
Line 53: | Line 53: | ||
}} | }} | ||
[[Category:Class Functions|setPoint]] | [[Category:Class Functions|setPoint]] | ||
+ | [[Category:Game Patch 1.2.6|setPoint]] |