Thread: A Combat Tracker question
-
May 29th, 2020, 15:57 #1
A Combat Tracker question
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.
-
May 29th, 2020, 21:02 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
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
-
May 29th, 2020, 21:50 #3
Thanks Moon,
I'll have a look at that, hopefully it'll help.
Cheers, Steve.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks