View Single Post
  #14  
Old 09-26-2006, 03:17 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Bl0nkt View Post
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.