mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
7a0a00ea09
* Use private * Fix wrong spacing * Fix wrong variable being used * Cleanup empty line after header * ace_common_fnc_getCountOfItem * Remove useless _return variable * Naming
39 lines
1016 B
Plaintext
39 lines
1016 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: KoffeinFlummi, commy2
|
|
* Replaces vanilla items with ACE ones.
|
|
*
|
|
* Arguments:
|
|
* 0: The unit <OBJECT>
|
|
*
|
|
* ReturnValue:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_unit"];
|
|
|
|
private _countFirstAidKit = [_unit, "FirstAidKit"] call EFUNC(common,getCountOfItem);
|
|
_unit removeItems "FirstAidKit";
|
|
|
|
private _countMedikit = [_unit, "Medikit"] call EFUNC(common,getCountOfItem);
|
|
_unit removeItems "Medikit";
|
|
|
|
for "_i" from 1 to _countFirstAidKit do {
|
|
_unit addItem "ACE_fieldDressing";
|
|
_unit addItem "ACE_packingBandage";
|
|
_unit addItem "ACE_morphine";
|
|
_unit addItem "ACE_tourniquet";
|
|
};
|
|
|
|
for "_i" from 1 to _countMedikit do {
|
|
_unit addItemToBackpack "ACE_fieldDressing";
|
|
_unit addItemToBackpack "ACE_packingBandage";
|
|
_unit addItemToBackpack "ACE_packingBandage";
|
|
_unit addItemToBackpack "ACE_epinephrine";
|
|
_unit addItemToBackpack "ACE_morphine";
|
|
_unit addItemToBackpack "ACE_salineIV_250";
|
|
_unit addItemToBackpack "ACE_tourniquet";
|
|
};
|