Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 deletions

41
nwn_dark_sun/trapdoor.nss Normal file
View File

@@ -0,0 +1,41 @@
//::///////////////////////////////////////////////
//:: Trap door that takes you to a waypoint that
//:: is stored into the Destination local string.
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Robert Babiak
//:: Created On: June 25, 2002
//:://////////////////////////////////////////////
void main()
{
object oidUser;
object oidDest;
string sDest;
if (!GetLocked(OBJECT_SELF) )
{
if ( GetIsOpen(OBJECT_SELF))
{
sDest = GetLocalString( OBJECT_SELF, "Destination" );
oidUser = GetLastUsedBy();
oidDest = GetObjectByTag(sDest);
AssignCommand(oidUser, ActionJumpToObject(oidDest,FALSE));
PlayAnimation(ANIMATION_PLACEABLE_CLOSE );
} else
{
PlayAnimation(ANIMATION_PLACEABLE_OPEN );
}
} else
{
// ActionUseSkill
}
}