소스 검색

with this vehicleBased is fully working

Namenai 7 년 전
부모
커밋
eea6b1a9aa

+ 10 - 8
Scripts/scripts/zeus3denScripts/vehicleBased/actionMenu/Boost/forwardKappa.sqf

@@ -1,11 +1,13 @@
+params ["_vic"];
+
 comment "Variable Decs";
-_this allowDamage false;
-_this  setvariable ["Speed",200,true];
-_this  setvariable ["turnon",true,true];
+_vic allowDamage false;
+_vic  setvariable ["Speed",200,true];
+_vic  setvariable ["turnon",true,true];
 
 
 comment "Increment Speed";
-_this  addAction ["<t color='#A668C2'>Increment Speed by 10 -------- U16</t>",
+_vic  addAction ["<t color='#A668C2'>Increment Speed by 10 -------- U16</t>",
 {
 (_this select 0)  setvariable ["Speed",(((_this select 0) getVariable "Speed")+10),true];
 hint parseText format["<t color='#A668C2'> Speed set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
@@ -14,7 +16,7 @@ hint parseText format["<t color='#A668C2'> Speed set to:%1 Kmph</t>",((_this sel
 
 
 comment "Decrement Speed";
-_this  addAction ["<t color='#FF69B4'>Decrement Speed by 10 -------- U17</t>",
+_vic  addAction ["<t color='#FF69B4'>Decrement Speed by 10 -------- U17</t>",
 {
 (_this select 0)  setvariable ["Speed",(((_this select 0) getVariable "Speed")-10),true];
 hint parseText format["<t color='#FF69B4'>Speed set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
@@ -24,7 +26,7 @@ hint parseText format["<t color='#FF69B4'>Speed set to:%1 Kmph</t>",((_this sele
 
 
 comment "Engage";
-_this  addAction ["<t color='#00FF00'>Engage C.R.U.I.S.I.E Control System -------- U18</t>",
+_vic  addAction ["<t color='#00FF00'>Engage C.R.U.I.S.I.E Control System -------- U18</t>",
 {
 
 (_this select 0) setvariable ["turnon",true,true];
@@ -60,7 +62,7 @@ turnon=false;
 
 
 comment "Disenage";
-_this  addAction ["<t color='#FFA500'>Disengage C.R.U.I.S.I.E Control System -------- U19</t>",
+_vic  addAction ["<t color='#FFA500'>Disengage C.R.U.I.S.I.E Control System -------- U19</t>",
 {
 (_this select 0) setvariable ["turnon",false,true];
 hint parseText "<t color='#FFA500'>DISENGAGING C.R.U.I.S.I.E Control System</t>";
@@ -71,7 +73,7 @@ hint parseText "<t color='#FFA500'>DRIVE DOWN</t>";
 
 
 comment "Halt";
-_this  addAction ["<t color='#FF0000'>Stop Driver -------- U20</t>",
+_vic  addAction ["<t color='#FF0000'>Stop Driver -------- U20</t>",
 {
 (_this select 0) setvariable ["turnon",false,true];
 hint parseText "<t color='#FF0000'>HALTING</t>";

+ 8 - 6
Scripts/scripts/zeus3denScripts/vehicleBased/actionMenu/Boost/reverseKappa.sqf

@@ -1,11 +1,13 @@
+params ["_vic"];
+
 comment "Variable Decs";
 
-_this  setvariable ["Speed",200,true];
-_this  setvariable ["turnon",true,true];
+_vic  setvariable ["Speed",200,true];
+_vic  setvariable ["turnon",true,true];
 
 
 comment "Increment Speed";
-_this  addAction ["<t color='#A668C2'>Increment Cap by 10</t>",
+_vic  addAction ["<t color='#A668C2'>Increment Cap by 10</t>",
 {
 (_this select 0)  setvariable ["Speed",(((_this select 0) getVariable "Speed")+10),true];
 hint parseText format["<t color='#A668C2'> Cap set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
@@ -14,7 +16,7 @@ hint parseText format["<t color='#A668C2'> Cap set to:%1 Kmph</t>",((_this selec
 
 
 comment "Decrement Speed";
-_this  addAction ["<t color='#FF69B4'>Decrement Cap by 10</t>",
+_vic  addAction ["<t color='#FF69B4'>Decrement Cap by 10</t>",
 {
 (_this select 0)  setvariable ["Speed",(((_this select 0) getVariable "Speed")-10),true];
 hint parseText format["<t color='#FF69B4'>Cap set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
@@ -24,7 +26,7 @@ hint parseText format["<t color='#FF69B4'>Cap set to:%1 Kmph</t>",((_this select
 
 
 comment "Engage";
-_this  addAction ["<t color='#00FF00'>Engage Matter Stopper</t>",
+_vic  addAction ["<t color='#00FF00'>Engage Matter Stopper</t>",
 {
 
 (_this select 0) setvariable ["turnon",true,true];
@@ -60,7 +62,7 @@ turnon=false;
 
 
 comment "Disenage";
-_this  addAction ["<t color='#FFA500'>Disengage Matter Stopper</t>",
+_vic  addAction ["<t color='#FFA500'>Disengage Matter Stopper</t>",
 {
 (_this select 0) setvariable ["turnon",false,true];
 hint parseText "<t color='#FFA500'>DISENGAGING</t>";