ColonySurvival icon indicating copy to clipboard operation
ColonySurvival copied to clipboard

[MODDING] Add a callback that triggers when a NPC/Monster Moved

Open Khanx opened this issue 3 years ago • 1 comments

Add a callback that triggers when a NPC/Monster moves, it can be helpful to detect when a monster moves over a trap.

Khanx avatar Dec 19 '21 18:12 Khanx

I've thought about it when adding traps to the game itself, but given the trap/monster counts involved the traps now work by checking for monsters often instead of the other way around. It's decently quicker to check whether a monster/NPC is at/near XYZ than to query the world for a block being near

pipliz avatar Dec 20 '21 18:12 pipliz