41 lines
1007 B
Plaintext
41 lines
1007 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: 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
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Modified By: Andrew Nobbs
|
||
|
//:: Modified On: September 23, 2002
|
||
|
//:: Modification: Removed unnecessary spaces.
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oidUser;
|
||
|
object oidDest;
|
||
|
string sDest;
|
||
|
|
||
|
if (!GetLocked(OBJECT_SELF))
|
||
|
{
|
||
|
if (GetIsOpen(OBJECT_SELF))
|
||
|
{
|
||
|
DelayCommand(0.5,DestroyObject(OBJECT_SELF));
|
||
|
} else
|
||
|
{
|
||
|
PlayAnimation(ANIMATION_PLACEABLE_OPEN);
|
||
|
DelayCommand(0.5,DestroyObject(OBJECT_SELF));
|
||
|
}
|
||
|
} else
|
||
|
{
|
||
|
// ActionUseSkill
|
||
|
}
|
||
|
|
||
|
}
|