Initial commit. Updated release archive.
This commit is contained in:
18
_module/nss/at_doorlever.nss
Normal file
18
_module/nss/at_doorlever.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = GetNearestObjectByTag ("Door");
|
||||
if (GetLocalInt (OBJECT_SELF, "m_bActivated") == TRUE)
|
||||
{
|
||||
SetLocalInt (OBJECT_SELF, "m_bActivated", FALSE);
|
||||
PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
AssignCommand (oDoor, ActionCloseDoor (oDoor));
|
||||
SetLocked (oDoor,TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalInt (OBJECT_SELF, "m_bActivated", TRUE);
|
||||
PlayAnimation (ANIMATION_PLACEABLE_ACTIVATE);
|
||||
AssignCommand (oDoor, ActionOpenDoor (oDoor));
|
||||
SetLocked (oDoor,FALSE);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user