Difference between revisions of "VN fnc log isLoaded"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Lou Montana moved page VN fnc log isloaded to VN fnc log isLoaded: name standard) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Ethan Johnson | |author= Ethan Johnson | ||
− | |a= | + | |a= global |
− | |e= | + | |e= local |
|g1= logistics_functions | |g1= logistics_functions | ||
− | |d= | + | |d= 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. | |
− | |||
− | |||
− | + | |s= [object, vehicle] call [[VN_fnc_log_isLoaded]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p1n= object | |
− | + | |p1t= object | |
− | |p1n= | + | |p1d= object that may be loaded |
− | |p1t= | ||
− | |p1d= | ||
|p1v= | |p1v= | ||
− | |p2n= | + | |p2n= vehicle |
− | |p2t= | + | |p2t= object |
− | |p2d= | + | |p2d= vehicle inventory |
− | |p2v= | + | |p2v= {{Biki|objNull}} |
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= {{Biki|true}} if loaded, {{Biki|false}} if not |
− | |x1= <code> | + | |x1= <code>[myCargo, sogJeep] call VN_fnc_log_isLoaded</code> |
}} | }} |
Revision as of 22:45, 18 January 2021
← 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