13 lines
429 B
Plaintext
13 lines
429 B
Plaintext
|
void main()
|
||
|
{
|
||
|
if (GetIsOpen(OBJECT_SELF)){
|
||
|
object oPC = GetLastUsedBy();
|
||
|
AssignCommand(oPC, JumpToObject(GetWaypointByTag("TAER_PRI_LADD")));}
|
||
|
else {
|
||
|
ActionOpenDoor(OBJECT_SELF);
|
||
|
PlayAnimation(ANIMATION_PLACEABLE_OPEN);
|
||
|
DelayCommand(10.0, ActionCloseDoor( OBJECT_SELF));
|
||
|
DelayCommand(10.0, PlayAnimation(ANIMATION_PLACEABLE_CLOSE));
|
||
|
DelayCommand(60.0, ExecuteScript("trapdoortaer3", OBJECT_SELF));}
|
||
|
}
|