Well, Im trying to make a code, that spawns a bot with a destructowand. I got the bot to spawn, equip the wand, and swing, but, i need help makeing the bot admin so it will be able to destroy bricks. Here is the code i have:
new AIPlayer(botabc)
{
datablock="PlayerStandardArmor";
position=localclientconnection.camera.getPosition();
};
botabc.mountImage("adminWandImage",0);
botabc.isAdmin = "1";
botabc.isSuperAdmin = "1";
botabc.setImageTrigger(0,1);
botabc.client = "95825";
botabc.client.isAdmin = "1";
botabc.client.isSuperAdmin = "2";
commandToServer('setAdminLevel',"botabc","2");
Thanks for spending your time to help me.