19 lines
417 B
Plaintext
19 lines
417 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oDoor = GetObjectByTag("LCUpperFloorDoor");
|
||
|
int nOpen = GetIsOpen(oDoor);
|
||
|
ActionSpeakString("Sounds of machines hum in the distance...");
|
||
|
if(nOpen == FALSE)
|
||
|
{
|
||
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||
|
ActionUnlockObject(oDoor);
|
||
|
ActionOpenDoor(oDoor);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||
|
ActionCloseDoor(oDoor);
|
||
|
ActionLockObject(oDoor);
|
||
|
}
|
||
|
}
|