Author Topic: onBotKill  (Read 213 times)

called when a bot kills something (not the other way around)
self/bot/named_brick/minigame/client (of the killed player, if it has a client)
how has this never been made already?? please?

Seems easy to do, just having to modify the onBotDamaged event that Visolator made to check if %obj is dead. I'll try doing it.

Seems easy to do, just having to modify the onBotDamaged event that Visolator made to check if %obj is dead. I'll try doing it.
one way to do it would be to package into GameConnection::onDeath and check if the sourceObject/killer was of an AiPlayer class

Alright, I'll see what I can do.

Edit: Goth and I made some progress on two separate versions. Mine uses a hacky workaround so it might be better to use Goth's.

Double Edit: Okay, it's finished. It should work with the targets you suggested, but I also took the liberty of adding killed bot targets as well. I'll release this on BLG too. I got help from Goth as well and some support.

Event_onBotKill (Hostr link)
Event_onBotKill (Blockland Glass link when it's available)
« Last Edit: December 10, 2019, 03:39:54 AM by Spartan224 »