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