Functions Documentation
View Function Edit Function
Name objRemoveItem
Syntax (objRemoveItem spaceObject itemStruct [number])
Argument List spaceObject: The space object you want to remove an item from.
itemStruct: The item you want to remove from the object.
[number]: The optional number of items you want to remove.
Returns condition: True if successful.
Category spaceobject, item
Description Removes the number of items (defaults to whatever is in the itemStruct) from the space object.
Example
(objRemoveItem gPlayerShip (itmCreate &itLongzhuSphere; 1))

Removes a Longzhu Sphere from the player ship and returns if it could do it.
Comment Very useful function for removing used up items or faking a switchable item.