Difference between revisions of "VN fnc log getInventory"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " {{Function" to "Category:TODO {{Function")
(Page filling)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{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= <pre>/*
+
|d= Returns the inventory of the provided vehicle.
        FILE: fn_log_getinventory.sqf
 
        DATE: 01-11-2019
 
        AUTHOR: Ethan Johnson
 
 
 
        DESCRIPTION:
 
                Returns the inventory of the vehicle passed through to the function
 
 
         PARAMETERS:
 
         PARAMETERS:
 
                 (0): OBJECT - Object/vehicle that the inventory should be checked
 
                 (0): OBJECT - Object/vehicle that the inventory should be checked
 
         RETURNS:
 
         RETURNS:
 
                 ARRAY
 
                 ARRAY
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_log_getinventory]];
+
|s= [vehicle] call [[VN_fnc_log_getInventory]]
  
|p1n=
+
|p1n= vehicle
|p1t=
+
|p1t= object
|p1d=
+
|p1d= vehicle or crate from which to get the inventory
 
|p1v=
 
|p1v=
  
|p2n=
+
|r1t= {{DataType|array}} of {{DataType|object}}
|p2t=
+
|r1d= list of inventory objects
|p2d=
 
|p2v=
 
 
 
|r1t=
 
|r1d=
 
  
|x1= <code>-</code>
+
|x1= <code>[sogJeep] call [[VN_fnc_log_getInventory]]</code>
 
}}
 
}}

Revision as of 22:23, 18 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): global
Effect(s): local

Description

Returns the inventory of the provided vehicle.

       PARAMETERS:
               (0): OBJECT - Object/vehicle that the inventory should be checked
       RETURNS:
               ARRAY

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