PickUpItem

PickUpItem
void PickUpItem ( void )

code contained within Inventory/script/ITEM_Scripts.dh

This script reads the actors ItemIndex, ItemModifier, ItemAmount and ItemDurability inventory count, checks if this item would go over the players weight limit, then and transfers it to the player inventory window using PlaceItemInClosestSlot. If PlaceItemInClosestSlot succeeds, the item actor is removed.