mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
745 B
Plaintext
27 lines
745 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: joko // Jonas
|
|
* Add the Reserve Parachute to Units or Save Backpack if is a Parachute in Unit
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* 0: Unit
|
|
* 1: getAllGear-Array
|
|
*
|
|
* Example:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
_unit = _this select 0;
|
|
_backpack = (_this select 1) select 6 ;
|
|
if ((vehicle _unit) isKindOf "ParachuteBase" || (backpack _unit == "")) then {
|
|
_unit addbackpack (_unit getVariable[QGVAR(backpackClass),""]);
|
|
} else {
|
|
if (getText(configfile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute") != "") then {
|
|
_unit setvariable[QGVAR(backpackClass),getText(configfile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute"),"ACE_NonSteerableParachute"];
|
|
};
|
|
}; |