About Store Forum Documentation Contact



Post Reply 
Drop item on ground.
Author Message
Xhizors Offline
Member

Post: #1
Drop item on ground.
At this time I will drop items at ground but it seems to now be working, It works in the tutorial so I dont know exactly what Im doing wrong here.

I create an item on the ground and pick it up using owner->itemPickUp( *pItem ); No problem here.

Also I can remove the item from my inventory using the reference pSlot[ID]

owner->pInventory->mItems.removeData( &pSlot[SLOT_TEMP]() );

Now the item is gone from storage.

But if I want to drop the item instead of remove it I do this.

owner->itemDropDown( pSlot[SLOT_TEMP]() );

It should work, the pointer is correct.. but nothing happens.

Any settings on the world editor or the item obj?

Thanks.
(This post was last modified: 10-29-2009 09:55 PM by Xhizors.)
10-29-2009 09:46 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Drop item on ground.
you need to make sure that all conditions for itemDropDown are met (chech the header file, there are the requirements described)
10-29-2009 11:38 PM
Find all posts by this user Quote this message in a reply
Post Reply