LoD_PRC8/_module/nss/ld_dngndoor0lvr.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

33 lines
765 B
Plaintext

void main()
{
object oDoor0 = GetObjectByTag("LCDungeonDoor0");
object oDoor3 = GetObjectByTag("LCDungeonDoor3");
int nOpen0 = GetIsOpen(oDoor0);
int nOpen3 = GetIsOpen(oDoor3);
ActionSpeakString("Sounds of machines hum in the distance...");
if(nOpen0 == FALSE)
{
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
ActionUnlockObject(oDoor0);
ActionOpenDoor(oDoor0);
}
else
{
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
ActionCloseDoor(oDoor0);
ActionLockObject(oDoor0);
}
if(nOpen3 == FALSE)
{
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
ActionUnlockObject(oDoor3);
ActionOpenDoor(oDoor3);
}
else
{
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
ActionCloseDoor(oDoor3);
ActionLockObject(oDoor3);
}
}