ACE3/addons/reload/functions/fnc_onTake.sqf
Joko 153644b77a
Reload/Interaction - Fix 2 hemtt ingame errors (#7924)
* fix 2 hemtt ingame errors

* Extract broken calls to function

* Update addons/interaction/functions/fnc_doRemoteControl.sqf

Co-authored-by: Dystopian <sddex@ya.ru>

Co-authored-by: Dystopian <sddex@ya.ru>
2020-10-21 11:17:42 -05:00

28 lines
545 B
Plaintext

#include "script_component.hpp"
/*
* Author: ?
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Container <OBJECT>
* 2: Item <STRING>
*
* Return Value:
* None
*
* Example:
* [bob, backpackContainer bob, "ACE_Banana"] call ace_reload_fnc_onTake
*
* Public: No
*/
params ["_unit", "_container", "_item"];
if (
_unit == ACE_player
&& {GVAR(DisplayText)}
&& {_item == currentMagazine _unit}
&& {_container in [uniformContainer _unit, vestContainer _unit, backpackContainer _unit]}
) then {
_unit call FUNC(displayAmmo);
};