function BotWandProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal) {
if(%col.isAIBot) {
if(%obj.client.selectedbot != %col) {
if(findclientbyblid(%col.creator))
messageclient(findclientbyblid(%col.creator),'', 'Your bot has been selected by %1.', %obj.client.name);
messageclient(%obj.client,'', 'You have selected %1\'s bot.', %col.name);
%obj.client.selectedbot = %col;
%col.isselectedby = %obj.client;
}
else {
if(findclientbyblid(%col.creator))
messageclient(findclientbyblid(%col.creator),'', 'Your bot has been unselected by %1.', %obj.client.name);
messageclient(%obj.client,'', 'You have unselected %1\'s bot.', %col.name);
%obj.client.selectedbot = -1;
%col.isselectedby = -1;
}
}
}
Never completed, may work now, but work on this script was stopped.