Prevent finishing NPCs¶
Engine restrictions
It's only available for Gothic 2 Addon (G2A)!
This hook is triggered whenever an NPC tries to finish another NPC while they are unconscious. It extends the default finishing system by allowing custom script conditions to determine whether finishing is allowed.
To control finishing behavior, define the following Daedalus function: zDExt_Npc_CanFinishAttack defined in Scripts/Content directory.
attacker– NPC performing the finishing attacktarget– NPC being finishedreturn–FALSE(zero) to block the action;TRUE(nonzero) to allow it. If the script call fails, the action is allowed and the failure is logged.