Jump to content

Exit Door


tomis13lack
 Share

Recommended Posts

I am trying to make a door that when used changes the map. Most of the things i have been referring to have referenced Apps.lua, but i know that apps.lua no longer exists. This is what i have so far:

function Script:Start()
self.parent= self.entity:GetParent()
end
function Script:Use(parent)
    World:Clear()
    Time:Pause()
 return Map:Load("Maps/start.map")
    collectgarbage()
    Time:Resume()
    changemapname = nil
 World:Update()
end

 

This doesn't work, giving errors with World (isnt set), collectgarbage, etc.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...