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

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);
}
}