Fixing Privates

This commit is contained in:
Joko 2015-05-19 21:46:34 +02:00
parent 4db9989480
commit bc535c95ba
5 changed files with 9 additions and 9 deletions

View File

@ -14,4 +14,4 @@
* Public: No
*/
#include "script_component.hpp"
_unit setVariable [QGVAR(chuteIsCut), false];
ACE_player setVariable [QGVAR(chuteIsCut), false];

View File

@ -14,6 +14,6 @@
*
* Public: No
*/
privat["_unit"];
_unit = _this select 0;
(animationState _unit == 'para_pilot' && !(_unit getvariable [QGVAR(chuteIsCut),false]))

View File

@ -15,7 +15,7 @@
* Public: No
*/
private["_unit","_vehicle"];
PARAMS_1(_unit);
_unit = _this select 0;
_vehicle = vehicle _unit;
_unit action ["GetOut", vehicle _unit];
deleteVehicle _vehicle;

View File

@ -14,8 +14,8 @@
* Public: No
*/
#include "script_component.hpp"
private ["_unit"];
PARAMS_1(_unit);
private["_unit"];
_unit = _this select 0;
GVAR(PFH) = false;
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
SETVAR(_unit,chuteIsCut,false);

View File

@ -15,13 +15,13 @@
*
* Public: No
*/
private ["_unit","_backpack"];
_unit = _this select 0;
_backpack = (_this select 1) select 6 ;
if ((vehicle _unit) isKindOf "ParachuteBase" || (backpack _unit == "")) then {
_unit addbackpack (_unit getVariable[QGVAR(backpackClass),""]);
_unit addBackpack (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]);
} else {
if (getText(configfile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute") != "") then {
_unit setvariable[QGVAR(backpackClass),getText(configfile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute"),"ACE_NonSteerableParachute"];
if (getText(configFile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute") != "") then {
_unit setVariable[QGVAR(backpackClass),getText(configFile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute")];
};
};