Initial Upload
Initial Upload
This commit is contained in:
32
_module/nss/ld_dngndoor0lvr.nss
Normal file
32
_module/nss/ld_dngndoor0lvr.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user