Bot Problem (hi perrin)

Post Reply
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Bot Problem (hi perrin)

Post 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.
Image
Post Reply