string sDeny; /* Script generated by Lilac Soul's NWN Script Generator, v. 2.2 For download info, please visit: http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */ //Put this script OnEnter void main() { object oPC = GetEnteringObject(); if (!GetIsPC(oPC)) return; object xTarget; if ( GetNearestObjectByTag( "arenaportcullis", oPC) == OBJECT_INVALID ) { object oTarget; object oSpawn; location lTarget; oTarget = GetWaypointByTag("WP_PORTCULL"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "arenaportcullis", lTarget); object oSound; oSound = GetObjectByTag("PortculLock"); SoundObjectSetVolume(oSound, 120); SoundObjectSetPosition(oSound, GetPosition(oPC)); SoundObjectPlay(oSound); } }