Explorar el Código

added gate controller for Venator

 gate controller for Venator
Indominusrexi hace 7 años
padre
commit
c659fc5e67
Se han modificado 1 ficheros con 25 adiciones y 0 borrados
  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];
+
+}
+];