modding:function:objremoveitem
Discuss this page on this pages TalkPage
objRemoveItem
| Syntax | (objRemoveItem spaceObject itemStruct [number]) |
|---|---|
| Arguments | 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 | item, spaceobject |
| 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. Return to Functions list
modding/function/objremoveitem.txt · Last modified: by 127.0.0.1
