I'm trying to force dialog with an enemy NPC once they reach a certain amount of health remaining but I can't seem to find an example script anywhere that shows how to do that. The idea is that some voice lines will begin to play and the player can "chat" with the enemy before killing them.
I'm guessing I need a combination of the following functions - AllowBleedoutDialogue(), AllowPCDialogue() and AddToFaction() but so far my experiments haven't been successful.
Any ideas?