Request if self is bot do this
#11
and if you remove all the isbot checks ?
[Image: MaEIQ.png]
Reply

#12
Try with is_bot()
So:
Code:
for(i = 0; i < level.players.size; i++) { if(level.players[i] is_bot()) Kick(level.players[i] GetEntityNumber()); }
Reply

#13
If you are a human the isBot stat isn't defined so you have to use this:
Code:
if(isDefined(self.pers["isBot"]) && self.pers["isBot"]) { //Do stuff here }

or this (requires utility.gsc to be included)
Code:
if(self is_bot()) { //Do stuff here }
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#14
(08-04-2011, 12:41)XeroK Wrote: Try with is_bot()
So:
Code:
for(i = 0; i < level.players.size; i++) { if(level.players[i] is_bot()) Kick(level.players[i] GetEntityNumber()); }

Love you
(08-04-2011, 13:01)master131 Wrote: If you are a human the isBot stat isn't defined so you have to use this:
Code:
if(isDefined(self.pers["isBot"]) && self.pers["isBot"]) { //Do stuff here }

or this (requires utility.gsc to be included)
Code:
if(self is_bot()) { //Do stuff here }

thx too
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.