I'm once again in need assistance (surprise surprise).
Can someone tell me which function is called when an NPC is deleted from the combat tracker ?
I need to grab it's Nodename before it's deleted.
Cheers, Steve.
Printable View
I'm once again in need assistance (surprise surprise).
Can someone tell me which function is called when an NPC is deleted from the combat tracker ?
I need to grab it's Nodename before it's deleted.
Cheers, Steve.
I couldn't remember if something like this was built already; but it appears there was:
CombatManager.setCustomDeleteCombatantHandler(<fun ction>);
This function is called with the node to be deleted as a parameter. From there, you'd have to determine whether the node is a PC or NPC before performing your NPC deletion code.
Regards,
JPG
Thanks Moon,
I'll have a look at that, hopefully it'll help.
Cheers, Steve.