hey, I have a suggestion, could you maybe set these scripts for the admin only? so that people dont lag up servers with hundreds of bots?

PS: I dont mean the jointeam part, just the parts where you can spawn and delete bots
That's an excellent idea; I've been meaning to do that myself.
hey kerm, I was wondering if you could help me out here, this seems to be formatted in a way I dont really understand...


Code:
   %index = getRandom(41) + 1;
   %index = ($weapon[%index].getname() $= 'nuke' || $weapon[%index].getname() $= 'flashlight')? 41 : %index;
   return $weapon[%index].getname();


how could I fix it to get it to work in my non-tbm mod?
All that does is get a random number between 1 and 42, check that that element of the $weapon array isn't the nuke or flashlight, and return the name of the weapon if it isn't.
PloKoon wrote:
hey Kerm, I was wondering if you could help me out here, this seems to be formatted in a way I dont really understand...


Code:
   %index = getRandom(41) + 1;
   %index = ($weapon[%index].getname() $= 'nuke' || $weapon[%index].getname() $= 'flashlight')? 41 : %index;
   return $weapon[%index].getname();


how could I fix it to get it to work in my non-tbm mod?


hahahaha. learn to use ternary operators. Very Happy
Heh, good call. It's pretty much convertible to use in most Torque applications, and certainly every BL mod.
Ultimate Dev'r wrote:
Stertardhateen2 porn movie!


rofl, you are having fun playing with the bots, aren't you? Although I personally liked your "And you're not!" comment in a different thread Very Happy
yeah, that was a great comment. Bot posts have been deleted.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 4 of 4
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement