VN_fnc_log_isLoaded
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Checks if the object is loaded at all or if a vehicle is also passed checks if the object is loaded in the vehicle. If vehicle is not provided then it will only check if the object is loaded in any vehicle.
Syntax
- Syntax
- [object, vehicle] call VN_fnc_log_isLoaded
- Parameters
- object: Object - object that may be loaded
- vehicle: Object - (Optional, default
objNull
) vehicle inventory - Return value
- Boolean - true if loaded, false if not
Examples
- Example 1
[myCargo, sogJeep] call VN_fnc_log_isLoaded