Re: Bot Problem (hi perrin)
Posted: Fri Nov 18, 2016 5:58 am
Never tried that before...
Bot names are equivalent to client IDs.
AI IDs are equivalent to player IDs.
Try:
Bot names are equivalent to client IDs.
AI IDs are equivalent to player IDs.
Try:
Code: Select all
Client::setSkin(%newName, "beagle");
%bot = AI::getID(%newName);
GameBase::setDamageLevel(%bot, Player::getArmor(%bot).maxDamage * 0.9); // 90% damage = 10% health.