Skip to content
VN_fnc_log_pickupLogisticItem

VN_fnc_log_pickupLogisticItem

v1.00Theme: LogisticsGroup: LogisticsEffects: globalReturns: Boolean

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.

Syntax

[player, cursorObject] call VN_fnc_log_pickupLogisticItem

Parameters

ParameterTypeDefaultDescription
player Object— unit picking the item up
cursorObject Object— picked-up item

Return value

Boolean - true on success, false on error

Examples

[player, sogJeep] call VN_fnc_log_pickupLogisticItem

Documented by Ethan Johnson.