Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_handleInv.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Do I really need one?
- */
- private ["_math","_item","_num","_return","_var","_weight","_value","_diff"];
- _mode = [_this,0,false,[false]] call BIS_fnc_param; //true = add; false = SUB;
- _item = [_this,1,"",[""]] call BIS_fnc_param; //The item we are using to add or remove.
- _quantite = [_this,2,0,[0]] call BIS_fnc_param; //Number of items to add or remove.
- if (_item isEqualTo "" || _quantite isEqualTo 0) exitWith {false};
- if (_mode isEqualTo true) then {
- for "_i" from 0 to _quantite do {
- player addItem _item;
- player assignItem _item;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement