Browse Source

added gate controller for Venator

 gate controller for Venator
Indominusrexi 7 years ago
parent
commit
c659fc5e67
1 changed files with 25 additions and 0 deletions
  1. 25 0
      Scripts/gateController.sqf

+ 25 - 0
Scripts/gateController.sqf

@@ -0,0 +1,25 @@
+_this setvariable ["gateToOpen1",Main_Gate_Front_1,true];
+_this setvariable ["gateToOpen2",Main_Gate_Front_2,true];
+_this setvariable ["gateToOpen3",Main_Gate_Front_1,true];
+_this setvariable ["gateToOpen4",Main_Gate_Front_2,true];
+
+_this  addAction ["<t color='#00FF00'>Open Gate</t>",
+{
+
+(_this select 0) getvariable "gateToOpen1" animateSource ["gate_door_1",1,3];
+(_this select 0) getvariable "gateToOpen2" animateSource ["gate_door_1",1,3];
+(_this select 0) getvariable "gateToOpen3" animateSource ["gate_door_2",1,3];
+(_this select 0) getvariable "gateToOpen4" animateSource ["gate_door_2",1,3];
+
+}
+];
+
+_this  addAction ["<t color='#00FF00'>Close Gate</t>",
+{
+(_this select 0) getvariable "gateToOpen1" animateSource ["gate_door_1",0,3];
+(_this select 0) getvariable "gateToOpen2" animateSource ["gate_door_1",0,3];
+(_this select 0) getvariable "gateToOpen3" animateSource ["gate_door_2",0,3];
+(_this select 0) getvariable "gateToOpen4" animateSource ["gate_door_2",0,3];
+
+}
+];