Raised This Month: $ Target: $400
 0% 

Switch or SetPlayerBit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 04-23-2012 , 08:37   Switch or SetPlayerBit
Reply With Quote #1

Which is better for setting random classes like:
PHP Code:
zombieid ] = random_num1);
switch( 
zombieid ] ) {
    case 
1: {
        Do 
this if zombies class is first.
    }
    case 
2: {
        Do 
this if zombies class is second.
    }
        
etc...

Or is it better like this:
PHP Code:
zombieid ] = random_num1);
switch( 
zombieid ] ) {
    case 
1: {
        
SetPlayerBitzombie1id );
        
ResetPlayerBitzombie2id );
    }
    case 
2: {
        
SetPlayerBitzombie2id );
        
ResetPlayerBitzombie1id );
    }
        
etc...

Which is better for later scripting like models, sounds and prethink ?

Last edited by DoviuX; 04-23-2012 at 08:39.
DoviuX is offline
Send a message via Skype™ to DoviuX
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode