Alangara_PRC8/_module/nss/ld_area_exit.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

23 lines
725 B
Plaintext

//::///////////////////////////////////////////////
//:: Name Area clean-up system
//:: FileName ld_area_exit.nss
//:://////////////////////////////////////////////
/*
Place this script in the area onexit event
*/
//:://////////////////////////////////////////////
//:: Created By: Lord Delekhan
//:: Created On: June 14, 2002
//:: Updated On: September 19, 2004
//:://////////////////////////////////////////////
void main()
{
object oArea = GetArea(OBJECT_SELF);
object oExiting = GetExitingObject();
event mEvent = EventUserDefined(3000);
if(GetIsPC(oExiting) || GetLocalInt(oExiting,"IsPC"))
{DelayCommand(10.0,SignalEvent(oArea,mEvent));
SetLocalInt(oArea,"InPlay",FALSE);}
}