Einar Posted May 27 Share Posted May 27 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. Quote Link to comment Share on other sites More sharing options...
Josh Posted May 29 Share Posted May 29 The FPS project includes a sample map where walking into an area will trigger a map change. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Einar Posted May 30 Author Share Posted May 30 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. Quote Link to comment Share on other sites More sharing options...
Josh Posted May 30 Share Posted May 30 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. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Einar Posted May 30 Author Share Posted May 30 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? Quote Link to comment Share on other sites More sharing options...
Josh Posted May 30 Share Posted May 30 I think these small changes will do what you want. Main.lua Menu.lua Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Einar Posted May 30 Author Share Posted May 30 4 hours ago, Josh said: I think these small changes will do what you want. Main.lua 3.25 kB · 0 downloads Menu.lua 14.47 kB · 0 downloads Oh god you remind me of my father, he could do anything, even if I had already tried it and it would just work, cheers mate! XD 1 Quote Link to comment Share on other sites More sharing options...
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.