One approach could be something like this: Code: local M = {} local light local isOn = false local timer = 3 local function onClientStartMission() light = scenetree.findObject('myPointLight') end local function onUpdate(dt) if isOn then timer = timer - dt end if timer < 0 then timer = 3 isOn = false if light then light.isEnabled = false end end end local function onBeamNGTrigger(data) dump(data) if data.triggerName == "lightTrigger" then if light then light.isEnabled = true isOn = true end end end M.onClientStartMission = onClientStartMission M.onUpdate = onUpdate M.onBeamNGTrigger = onBeamNGTrigger return M Video - Click to Play - Direct Link
Thanks for help. Everything works great.As always quick response of support Gfycat Video - Click to Play - Direct Link