--L1_NextSceneCollisionE-- NextScene = {} --This is the begining of the portal function for the next scene. NextScene["OnCollision"] = function(actorA, actorB, x, y, z) if actorB:GetName() == "Tank" then print("[Lua] Loading123 state entered. Loading scene.") scene = GAME():GetSceneSystem():GetScene("L1_Elevator") if scene then print("[Lua] Loading state entered. Loading scene.") GAME():GetSceneSystem():SetCurrentScene(scene) end end end --This is the portal function to load the next screen for tank NextScene["Enter"] = function(actor) end NextScene["Update"] = function(actor) end NextScene["Exit"] = function(actor) end