Initial Upload
Initial Upload
This commit is contained in:
18
_module/nss/ld_fncedoorlvr.nss
Normal file
18
_module/nss/ld_fncedoorlvr.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = GetObjectByTag("LDFenceDoor");
|
||||
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