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.
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
yeah, that was a great comment. Bot posts have been deleted.