-- LUA Script - precede every function and global member with lowercase name of script + '_main' function teleporter_init(e) end function teleporter_main(e) PlayerDist = GetPlayerDistance(e) if PlayerDist < 100 and g_PlayerHealth > 0 then PlayNon3DSound(e,0) TransportToIfUsed(e) end end