This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hey I am trying to make a mod(2 actually) but the only problem is that I want a function to happen only once but it happens everytime I load a world instead. Any suggestions?
The heck is this for
Based from what you said, I think you're trying to make a function work only once and it'll happen only when you enter a world for the first time...
You can use this then:
var DONE = false; function newLevel() { if(DONE == false) { DONE = true; //Place function(s) here! } }
function newLevel() {
}
*P.S. Wrong place dude... move it to the MCPE: Mods/Tool Help Requests Forum
Quote from LBSG_Player_ACE19» Based from what you said, I think you're trying to make a function work only once and it'll happen only when you enter a world for the first time... You can use this then: *P.S. Wrong place dude... move it to the MCPE: Mods/Tool Help Requests Forum
Wow it worked thanks so much, you just moved 2 mods further into development thanks
and I'll put threads in the correct category next time sorry, was in a rush
No prob.
Hey I am trying to make a mod(2 actually) but the only problem is that I want a function to happen only once but it happens everytime I load a world instead. Any suggestions?
The heck is this for
Based from what you said, I think you're trying to make a function work only once and it'll happen only when you enter a world for the first time...
You can use this then:
*P.S. Wrong place dude... move it to the MCPE: Mods/Tool Help Requests Forum
Wow it worked thanks so much, you just moved 2 mods further into development thanks
and I'll put threads in the correct category next time sorry, was in a rush
The heck is this for
No prob.