Initial Upload
Initial Upload
This commit is contained in:
19
_module/nss/ld_dngndoor4lvr.nss
Normal file
19
_module/nss/ld_dngndoor4lvr.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = GetObjectByTag("LCDungeonDoor4");
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user