EmptyContainer
Move all items from Container to container DestContainer with delay between movements DelayMS
If source container is empty - returns false, else result of method = resulf of moveitems.
Pascal
function EmptyContainer(Container : Cardinal;DestContainer : Cardinal;DelayMS : Word) : Boolean;
Python
def EmptyContainer(Container, DestContainer, delay_ms): -> bool
Example Python:
def loot( lootBag = Backpack() ):
if openContainer(corpse):
EmptyContainer(corpse, lootBag, 5/10)