GTkoi Posted October 5, 2019 Posted October 5, 2019 Hello ,I would like a code to change the map when I press a key . Also I have delete "triggerChangeMap" for my pc and how do I do to have it again ? Thanks you ?? Quote
havenphillip Posted October 5, 2019 Posted October 5, 2019 I would try something like: function Script:UpdateWorld() If window:KeyHit(Key.A) then changemapname=self.mapname end Here's the triggerChangeMap script. --[[ This script will act as a trigger to change the current map. Place this at the end of your map to make the player progress to the next level. ]]-- Script.mapname=""--string "Map Name" function Script:Start() self.enabled=true end function Script:Collision(entity, position, normal, speed) changemapname=self.mapname end function Script:Enable()--in if self.enabled==false then self.enabled=true self:CallOutputs("Enable") end end function Script:Disable()--in if self.enabled then self.enabled=false self:CallOutputs("Disable") end end Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.