Difference between revisions of "VN fnc log loadLogisticItem"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |e=" to " |a= |e=")
m (Some wiki formatting)
 
(5 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=
 
  
|g1= logistics_functions
+
|e= global
  
|d= <pre>/*
+
|g1= Logistics
        FILE: fn_log_openlogisticsinventory.sqf
 
        DATE: 27-07-2019
 
        AUTHOR: Ethan Johnson
 
  
        DESCRIPTION:
+
|d= Loads object into vehicle, removes it from the world.
                Loads object into vehicle, removes it from the world.
 
        PARAMETERS:
 
                (0): OBJECT - Player object.
 
                (1): NUMBER - Cursor object that the player is looking at.
 
        RETURNS:
 
                BOOLEAN
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_log_loadlogisticitem]];
+
|s= [player, objectToLoad] call [[VN_fnc_log_loadLogisticItem]]
  
|p1n=
+
|p1n= player
|p1t=
+
|p1t= object
|p1d=
+
|p1d= player object
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= objectToLoad
|p2t=
+
|p2t= object
|p2d=
+
|p2d= usually {{Biki|cursorObject}}
 
|p2v=
 
|p2v=
  
|r1t=
+
|r1t= boolean
|r1d=
+
|r1d= {{Biki|true}} on success, {{Biki|false}} on error
  
|x1= <code>-</code>
+
|x1= <code>[player, cursorObject] call [[VN_fnc_log_loadLogisticItem]];</code>
 
}}
 
}}

Latest revision as of 20:18, 26 February 2021

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

Description

Loads object into vehicle, removes it from the world.

Syntax

Syntax
[player, objectToLoad] call VN_fnc_log_loadLogisticItem
Parameters
player: Object - player object
objectToLoad: Object - usually cursorObject
Return value
Boolean - true on success, false on error

Examples

Example 1
[player, cursorObject] call VN_fnc_log_loadLogisticItem;