Page 1 of 1

Re: Bot Problem (hi perrin)

Posted: Fri Nov 18, 2016 5:58 am
by perrinoia
Never tried that before...

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.