VN_fnc_log_pickupLogisticItem

From Savage Game Design Wiki
Revision as of 20:54, 20 January 2021 by Lou Montana (talk | contribs) (Page filling)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): n/a
Effect(s): global

Description

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

Syntax
[player, cursorObject] call VN_fnc_log_pickupLogisticItem
Parameters
player: Object - unit picking the item up
cursorObject: Object - picked-up item
Return value
Boolean - true on success, false on error

Examples

Example 1
[player, sogJeep] call VN_fnc_log_pickupLogisticItem