Quote:
Originally Posted by Bl0nkt
1.
I used "mode" to classify the "mode" the action is going through. Starting the game, ending the game, removing the weapon, etc...
Simple as that.
2.
I used a level list in an array since I was considering making that mansion that was in SR into part of the event. The level names in it had no specific order or similarity.
3.
Yeah, I called the "remove" function in its own triggeraction, considering I wanted to perform everything that happened in that particular block. Sure beats the hell out of random code stacking.
Btw, you spelled genius wrong.
|
ogod... you totally missed my points. Now you think the codes efficient.. GENIUSNESS!
1) You are saying you used mode.. right? Why didn't you just do params[0].. or a switch statement.
2) You could have made the level list on the serverside the whoel time.. and just made the level list consist of a levelstarts for each.
3) I doubt you can call the function your currently in (calling itself). You should have made a seperate function for it.