Code: Select all
Void SpawnZombie(CSmMapBotPath spawn) {
declare CSmPlayer bot = CreateBotPlayer(NullId, 0);
bot.ArmorMax = 400;
bot.Armor = bot.ArmorMax;
bot.Driver.Behaviour = CSmPlayerDriver::ESmDriverBehaviour::Patrol;
bot.Driver.AggroRadius = 1000.;
SpawnBotPlayer(bot, 1, 400, spawn, Now + 50);
}
I'm trying to spawn a bot on BotPath, but I also want to attack that bot. He can attack me normally, but I can't him. I think I need to add something so the bot can be attackable, but I'm not sure. Tested a lot of things, nothing has worked.
Also, PendingEvents doesn't return OnHit when I hit a bot, so I think there's a different problem. Bots can normally kill each other.

I'm using custom weapon that I made in Action Maker, but there's nothing to set about damage.
Offtopic: Somehow, even though the rockets bot shoots are red, the bot itself is blue. What's the problem here?
Thanks in advance.