Gives a specified item to a target creature.
- Item to give
- Object to give oItem to
Gives oItem to oGiveTo. No corresponding animations are played, and the item is deposited immediately into oGiveTo's inventory. If oItem is not a valid item, or oReciever is not a valid object, nothing will happen.
oGiveTo can be a creature (PC or NPC) or a container object.
oGiveTo doesn't have to be in the vicinity, or even the same area, as the caller of the function. Nor will the function cause the caller to move towards oGiveTo.
author: Ryan Hunt, editor: Lilac Soul