Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
//::///////////////////////////////////////////////
//:: ZEP_DOORSPAWN.nss
//:: Copyright (c) 2001 Bioware Corp.
//:: Modified by Dan Heidel 1/14/04 for CEP
//:://////////////////////////////////////////////
/*
Place in the OnHeartbeat function of a placeable door
to ensure proper functioning. See zep_openclose for
further documentation.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: January 2002
//:://////////////////////////////////////////////
void main()
{
int nIsOpen = GetIsOpen(OBJECT_SELF);
if(nIsOpen == 1)return; //if door is open, quit
if(GetLocalObject(OBJECT_SELF, "GateBlock") != OBJECT_INVALID) return; //if gateblock is already in place, quit
string sGateBlock = GetLocalString(OBJECT_SELF, "CEP_L_GATEBLOCK");
location lSelfLoc = GetLocation(OBJECT_SELF);
object oSelf = OBJECT_SELF;
PlayAnimation(ANIMATION_PLACEABLE_CLOSE);
SetLocalObject(oSelf, "GateBlock", CreateObject(OBJECT_TYPE_PLACEABLE, sGateBlock, lSelfLoc));
}