mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
44e0fdb6fa
* Reload code cleanup * Update fnc_startLinkingBelt.sqf * Update addons/reload/functions/fnc_getAmmoToLinkBelt.sqf Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> --------- Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
30 lines
610 B
Plaintext
30 lines
610 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: commy2, esteldunedain
|
|
* Play animation and display message.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit equipped with the weapon <OBJECT>
|
|
* 1: Unit to execute the reload <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [cursorObject, player] call ace_reload_fnc_checkAmmo
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target", "_unit"];
|
|
|
|
if (_unit == _target) then {
|
|
if ((vehicle _target) isKindOf "StaticWeapon") then {
|
|
_target = vehicle _target;
|
|
};
|
|
|
|
[_unit, "Gear", 1] call EFUNC(common,doGesture);
|
|
};
|
|
|
|
[FUNC(displayAmmo), _target, 1] call CBA_fnc_waitAndExecute;
|