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:
True if successful.
Category:
spaceObject, item
Description:
Removes the number of items (defaults to whatever is in the itemStruct) from the space object.
Example:
Code: Select all
(objRemoveItem gPlayerShip (itmCreate &itLongzhuSphere; 1))
Comment:
Very useful function for removing used up items or faking a switchable item.