2025/09/24 Update
Updates from @behindflayer
This commit is contained in:
13
_module/nss/devcrit_block.nss
Normal file
13
_module/nss/devcrit_block.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "nwnx_events"
|
||||
|
||||
void main()
|
||||
{
|
||||
// fetch the target object from event data
|
||||
object oTarget = StringToObject(NWNX_Events_GetEventData("TARGET"));
|
||||
|
||||
if (GetLocalInt(oTarget, "IMMUNE_DEV_CRIT"))
|
||||
{
|
||||
// block the instant death
|
||||
NWNX_Events_SetEventResult("0");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user