Difference between revisions of "DCS func setPoint"
From DCS World Wiki - Hoggitworld.com
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) |