modding:function:objhasitem
Discuss this page on this pages TalkPage
objHasItem
| Syntax | (objHasItem spaceObject itemStruct) |
|---|---|
| Arguments | spaceObject: The space object you want to see if it has the item. |
| itemStruct: The itemStruct of the item you want to see if the space object has. | |
| Returns | condition: True if the space object has that type of item. Nil otherwise. |
| Category | condition query, spaceobject |
| Description | Checks to see if the space object has the item. |
Example
(objHasItem gplayership (itmCreate &itPortableAutodoc; 1))
Checks to see if the player ship has an auto doc. Return to Functions list
modding/function/objhasitem.txt · Last modified: by 127.0.0.1
