mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0025268eb0
- acify
27 lines
547 B
Plaintext
27 lines
547 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Vdauphin
|
|
* Checks if unload all vehicles interaction can be show.
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle <OBJECT>
|
|
* 1: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Can show menu <BOOL>
|
|
*
|
|
* Example:
|
|
* [vehicle player, player] call ace_cargo_fnc_canShowUnloadAllVehicles
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params [
|
|
"_vehicle",
|
|
["_unit", player, [objNull]]
|
|
];
|
|
|
|
driver _vehicle isEqualTo _unit &&
|
|
{isClass (configOf _vehicle >> "VehicleTransport" >> "Carrier")} &&
|
|
{!([_vehicle] call FUNC(getVehicleCargo) isEqualTo [])}
|