Summer Sale
  1. #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.

  2. #2
    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

  3. #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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
PF2E Playlist

Log in

Log in