How to teleport with LUA Triggers in BeamNG

Published on ● Video Link: https://www.youtube.com/watch?v=5GOmN5117Eg



Duration: 9:16
260 views
9


To boldly go where no Dummy has gone before... Copy this and make a text document on your desktop and tune in....

local function teleportPlayer(data)
local vehicleName = data.subjectName

if data.event == 'enter' and data.subjectName ~= 'scenario_player0' then
TorqueScript.eval(vehicleName..'.position = "-244.876877 -377.685059 281.132080";')
end
end

return teleportPlayer