Author Topic: Typemask for bots? [Solved]  (Read 644 times)

Aye, I'm doing a radius search to apply damage to different types, I've got player and vehicle down, but is there a typemask specifically for bots or one that detects them as well? Thanks!
« Last Edit: April 04, 2016, 03:58:30 PM by BloxersPost »

No, there isn't a mask specifically for a bot.
$TypeMasks::PlayerObjectType will detect it, and if you want to check if the object is a bot, just get the class name and see if it is an AIPlayer.
%object.getClassName() $= "AIPlayer"

No, there isn't a mask specifically for a bot.
$TypeMasks::PlayerObjectType will detect it, and if you want to check if the object is a bot, just get the class name and see if it is an AIPlayer.
%object.getClassName() $= "AIPlayer"

Thanks man, I guess I just didn't have my code set up correctly, which should be fixed by now.