2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2020-10-21 16:17:42 +00:00
|
|
|
/*
|
2023-08-28 17:26:24 +00:00
|
|
|
* Author: jokoho48
|
|
|
|
* Called from "Take" EH.
|
2020-10-21 16:17:42 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
* 1: Container <OBJECT>
|
|
|
|
* 2: Item <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2023-08-28 17:26:24 +00:00
|
|
|
* [player, backpackContainer player, "ACE_Banana"] call ace_reload_fnc_onTake
|
2020-10-21 16:17:42 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_unit", "_container", "_item"];
|
2023-08-28 17:26:24 +00:00
|
|
|
|
2020-10-21 16:17:42 +00:00
|
|
|
if (
|
2023-08-28 17:26:24 +00:00
|
|
|
_unit == ACE_player &&
|
|
|
|
{GVAR(displayText)} &&
|
|
|
|
{_item == currentMagazine _unit} &&
|
|
|
|
{_container in [uniformContainer _unit, vestContainer _unit, backpackContainer _unit]}
|
2020-10-21 16:17:42 +00:00
|
|
|
) then {
|
|
|
|
_unit call FUNC(displayAmmo);
|
|
|
|
};
|