PRC8_fork/nwn/trunk/scripts/door_ud.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

28 lines
877 B
Plaintext

//::///////////////////////////////////////////////
//:: Name PRC Respawning Door User Defined event
//:: FileName door_ud
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This handles re-creating the door after it has been destroyed
To trigger it, send a user defined event no 500 to the door
This will not lock or trap the door again
*/
//:://////////////////////////////////////////////
//:: Created By: Primogenitor
//:: Created On: 08/05/06
//:://////////////////////////////////////////////
void main()
{
if(GetUserDefinedEventNumber() == 500)
{
object oDoor = OBJECT_SELF;
//respawn
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectHeal(GetMaxHitPoints(oDoor)-GetCurrentHitPoints(oDoor)), oDoor);
PlayAnimation(ANIMATION_DOOR_CLOSE);
}
}