How to teleport with LUA Triggers in BeamNG
Subscribers:
3,300
Published on ● Video Link: https://www.youtube.com/watch?v=5GOmN5117Eg
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