Difference between revisions of "VN fnc log pickupLogisticItem"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "call VN_" to "call [[VN_")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Ethan Johnson
+
|author= Ethan Johnson
  
|e=
+
|a=
  
|g1= logistics_functions
+
|e= global
  
|d= <pre>/*
+
|g1= Logistics
        FILE: fn_log_pickuplogisticitem.sqf
 
        DATE: 27-07-2019
 
        AUTHOR: Ethan Johnson
 
  
        DESCRIPTION:
+
|d= Picks up object the player is looking at. Creates a loop that moves the object in the direction of the players camera.
                Picks up object the player is looking at. Creates a loop that moves the object in the direction of the players camera.
+
Stops when player dies, places object, gets into a vehicle or becomes incapacitated.
                Stops when player dies, places object, gets into a vehicle or becomes incapacitated.
 
        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_pickuplogisticitem]];
+
|s= [player, cursorObject] call [[VN_fnc_log_pickupLogisticItem]]
  
|p1n=
+
|p1n= player
|p1t=
+
|p1t= object
|p1d=
+
|p1d= unit picking the item up
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= cursorObject
|p2t=
+
|p2t= object
|p2d=
+
|p2d= picked-up item
 
|p2v=
 
|p2v=
  
|r1t=
+
|r1t= boolean
|r1d=
+
|r1d= {{Biki|true}} on success, {{Biki|false}} on error
  
|x1= <code>-</code>
+
|x1= <code>[player, sogJeep] call [[VN_fnc_log_pickupLogisticItem</code>
 
}}
 
}}

Latest revision as of 09:14, 27 February 2021

{{Function

|v= 1.00

|author= Ethan Johnson

|a=

|e= global

|g1= Logistics

|d= Picks up object the player is looking at. Creates a loop that moves the object in the direction of the players camera. Stops when player dies, places object, gets into a vehicle or becomes incapacitated.

|s= [player, cursorObject] call VN_fnc_log_pickupLogisticItem

|p1n= player |p1t= object |p1d= unit picking the item up |p1v=

|p2n= cursorObject |p2t= object |p2d= picked-up item |p2v=

|r1t= boolean |r1d= true on success, false on error

|x1= [player, sogJeep] call [[VN_fnc_log_pickupLogisticItem }}