View Full Version : who is the bot?
eltrollo
11-27-2007, 04:26 PM
hello everyone, i just started writing mutators for ut
and now i have a little question:
how can i find out if a pawn is bot????
and is this even possible?
(my idea was to check if a pawn does some ai commands)
BakerCo
11-27-2007, 04:46 PM
u can look at the pawns controller and see if bIsPlayer is true or false I believe
czard
11-27-2007, 05:18 PM
from the controller class:
var bool bIsPlayer; // Pawn is a player or a player-bot.
what I would do is (and this is completely untested but should work from what i understand)
if( controller.isa('UTBot') )
loginternal("I am a bot");
Nereid
11-27-2007, 11:17 PM
The PlayerReplicationInfo class has a bBot field that you could also use.
eltrollo
11-28-2007, 05:55 PM
thx for youre help
but what if i can't use the controller class????
BakerCo
11-28-2007, 07:10 PM
why would that be a problem if you can access a pawn u can access its controller
eltrollo
11-29-2007, 03:40 AM
oh sorry i didn't know this is possible :D
Powered by vBulletin® Version 4.1.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.