ActionPickUpItem(object)

Causes subject to run to an item and place it in inventory.

void ActionPickUpItem(
    object oItem
);

Parameters

oItem

The item to be picked up.


Description

When the action is executed, the subject will run to the location of oItem, crouch down, and place oItem in it's inventory.
If an error occurs the log file will contain "ActionPickUpItem failed."



Remarks

SPECULATION: if the path is blocked to oItem then the function will fail. Try using ActionForceMoveToObject before calling ActionPickUpItem.


Version

1.61

See Also

functions: ActionPutDownItem
categories: Action on Object Functions | Inventory Functions | Movement Functions


 author: Ryan Hunt, editor: Lilac Soul, additional contributor(s): Lilac Soul