Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,28 @@
//::///////////////////////////////////////////////
//:: 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);
}
}