PRC8/nwn/nwnprc/trunk/scripts/door_destroyed.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

25 lines
761 B
Plaintext

//::///////////////////////////////////////////////
//:: Name PRC Respawning Door Destroyed event
//:: FileName door_destroyed
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This handles prevent the door being removed
It should be respawned by sending a userdefined
event no 500 to the door later
*/
//:://////////////////////////////////////////////
//:: Created By: Primogenitor
//:: Created On: 08/05/06
//:://////////////////////////////////////////////
void main()
{
object oDoor = OBJECT_SELF;
int nSave = GetWillSavingThrow(oDoor);
SetIsDestroyable(FALSE);
if(nSave)
DelayCommand(TurnsToSeconds(nSave), SignalEvent(oDoor, EventUserDefined(500)));
}