Initial commit. Updated release archive.
This commit is contained in:
12
_module/nss/trig_dooraction.nss
Normal file
12
_module/nss/trig_dooraction.nss
Normal file
@@ -0,0 +1,12 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = GetNearestObjectByTag("Door");
|
||||
if(GetIsOpen(oDoor) == TRUE)
|
||||
{
|
||||
ActionCloseDoor(oDoor);
|
||||
}
|
||||
else
|
||||
{
|
||||
AssignCommand(oDoor, ActionOpenDoor(oDoor));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user