Jump to content

Recommended Posts

Posted

I have gotten somewhat off my arse in terms of LUA programming, however I cannot seem to program a button in the menu screen to restart the current scene, if any help or assistance can be provided, thank you. 

Skjermbilde 2024-05-27 023205.png

Posted

The FPS project includes a sample map where walking into an area will trigger a map change.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
6 hours ago, Josh said:

The FPS project includes a sample map where walking into an area will trigger a map change.

Yes I'm aware, but I'm not trying to make a trigger zone, no. I'm trying to add a button to the menu where the player can use anywhere, but when I try it out it just overlaps the map I'm already in and causes alot of bugs.

Posted

The trigger does this by setting the global variable "changemapname" to a new value. If you do the same thing with your button, then the value will be detected in the main loop and a new map will be loaded.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
4 minutes ago, Josh said:

The trigger does this by setting the global variable "changemapname" to a new value. If you do the same thing with your button, then the value will be detected in the main loop and a new map will be loaded.

How do I do that in Menu.lua?

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.

×
×
  • Create New...