VN_fnc_log_pickupLogisticItem
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
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