13 lines
297 B
Plaintext
13 lines
297 B
Plaintext
![]() |
#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");
|
||
|
}
|
||
|
}
|