mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a8c263b6cc
Thanks guys
22 lines
407 B
Plaintext
22 lines
407 B
Plaintext
/*
|
|
* Author: GitHawk
|
|
* Check if a unit can pick up ammo
|
|
*
|
|
* Arguments:
|
|
* 0: The Player <OBJECT>
|
|
* 1: The Target <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Can rearm
|
|
*
|
|
* Example:
|
|
* [tank] call ace_rearm_fnc_canPickUpAmmo
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_target"];
|
|
|
|
!(isNull _unit || {!(_unit isKindOf "CAManBase")} || {!local _unit} || { (_target distance _unit) > 7})
|