41 lines
985 B
Plaintext
41 lines
985 B
Plaintext
void main()
|
|
{
|
|
object oDoor1 = GetObjectByTag("LCDungeonDoor1");
|
|
object oDoor2 = GetObjectByTag("LCDungeonDoor2");
|
|
object oDoor3 = GetObjectByTag("LCDungeonDoor3");
|
|
int nOpen1 = GetIsOpen(oDoor1);
|
|
int nOpen2 = GetIsOpen(oDoor2);
|
|
int nOpen3 = GetIsOpen(oDoor3);
|
|
ActionSpeakString("Sounds of machines hum in the distance...");
|
|
if(nOpen3 == TRUE)
|
|
{
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
|
ActionCloseDoor(oDoor3);
|
|
ActionLockObject(oDoor3);
|
|
}
|
|
if(nOpen2 == FALSE)
|
|
{
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
|
ActionUnlockObject(oDoor2);
|
|
ActionOpenDoor(oDoor2);
|
|
}
|
|
else
|
|
{
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
|
ActionCloseDoor(oDoor2);
|
|
ActionLockObject(oDoor2);
|
|
}
|
|
if(nOpen1 == FALSE)
|
|
{
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
|
ActionUnlockObject(oDoor1);
|
|
ActionOpenDoor(oDoor1);
|
|
}
|
|
else
|
|
{
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
|
ActionCloseDoor(oDoor1);
|
|
ActionLockObject(oDoor1);
|
|
}
|
|
}
|