mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5e103ba398
Added code for nozzle object Params and private update
27 lines
597 B
Plaintext
27 lines
597 B
Plaintext
/*
|
|
* Author: Jonpas, GitHawk
|
|
* Checks if unit can check fuel.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Fuel Truck/Station <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Can Check Fuel <BOOL>
|
|
*
|
|
* Example:
|
|
* [player, truck] call ace_refuel_fnc_canCheckFuel
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params [["_unit", objNull, [objNull]], ["_target", objNull, [objNull]]];
|
|
|
|
!(isNull _unit ||
|
|
{!(_unit isKindOf "CAManBase")} ||
|
|
{!local _unit} ||
|
|
{!alive _target} ||
|
|
{(_target distance _unit) > REFUEL_ACTION_DISTANCE} ||
|
|
{(_target call FUNC(getFuel) == REFUEL_INFINITE_FUEL)})
|