Difference between revisions of "VN fnc log getInventory"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function" to "Category:TODO {{Function") |
Lou Montana (talk | contribs) m (Text replacement - "logistics_functions" to "Logistics") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Ethan Johnson | |author= Ethan Johnson | ||
− | |a= | + | |a= global |
− | |e= | + | |e= local |
− | |g1= | + | |g1= Logistics |
− | |d= | + | |d= Returns the inventory of the provided vehicle. |
− | |||
− | |||
− | |||
− | + | |s= [vehicle] call [[VN_fnc_log_getInventory]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p1n= vehicle | |
− | + | |p1t= object | |
− | |p1n= | + | |p1d= vehicle or crate from which to get the inventory |
− | |p1t= | ||
− | |p1d= | ||
|p1v= | |p1v= | ||
− | | | + | |r1t= {{DataType|array}} of {{DataType|object}} |
− | | | + | |r1d= list of inventory objects |
− | | | ||
− | |||
− | |||
− | |||
− | |r1d= | ||
− | |x1= <code> | + | |x1= <code>[sogJeep] call [[VN_fnc_log_getInventory]]</code> |
}} | }} |
Latest revision as of 23:08, 18 January 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Returns the inventory of the provided vehicle.
Syntax
- Syntax
- [vehicle] call VN_fnc_log_getInventory
- Parameters
- vehicle: Object - vehicle or crate from which to get the inventory
- Return value
- Array of Object - list of inventory objects
Examples
- Example 1
[sogJeep] call VN_fnc_log_getInventory