PlaceItemInClosestSlot

PlaceItemInClosestSlot
bool PlaceItemInClosestSlot( int Index, int Amount, int Durability, int Modifier, int Time, int Window )

Function is located within Inventory/script/HUD_Funcs.dh

Parameters:

 * Index - From the ItemList
 * Amount - Number of items to stack
 * Durability - Durability of this instance
 * Modifier - From the ModifierList
 * Time - How long this instance has existed in tics
 * Window - Index to Window pointer array.

Description:
Calls an iterative CheckInventorySpace check for sizes pulled from ItemList[Index]. Once free space is found, the item is stored and SetInventoryOrigins ensures the item space is marked accordingly.

Returns true if item was successfully placed in the inventory selected.