(Created page with "The SInventory class allows you to access a users inventory ==Members== {{ScriptFunction|void|Authorize|();|Prompts the user to grant access to inventory to the script. Big n...") |
(Added simple example to SInventory .Authorize() .Items .RequestRefresh()) |
||
Line 2: | Line 2: | ||
==Members== | ==Members== | ||
− | {{ScriptFunction|void|Authorize|();|Prompts the user to grant access to inventory to the script. Big nasty warning box. | + | {{ScriptFunction|void|Authorize|();|Prompts the user to grant access to inventory to the script. Big nasty warning box.|5= |
− | + | <pre> Space.Inventory.Authorize()</pre>}} | |
− | + | ||
+ | {{ScriptFunction|void|RequestRefresh|();|Forces a check for external changes to the users inventory, can only be called once every 60 seconds|5= | ||
+ | <pre>Space.Inventory.RequestRefresh()</pre>}} | ||
+ | |||
+ | ==Properties== | ||
+ | {{ScriptFunction|SInventoryItem|Items[]|{ get; }|Returns the array of the users current inventory items|5= | ||
+ | <pre>invItems = Space.Inventory.Items</pre>}} | ||
{{Scripting Navbox}} | {{Scripting Navbox}} |
The SInventory class allows you to access a users inventory
Prompts the user to grant access to inventory to the script. Big nasty warning box.
Space.Inventory.Authorize()
Forces a check for external changes to the users inventory, can only be called once every 60 seconds
Space.Inventory.RequestRefresh()
Returns the array of the users current inventory items
invItems = Space.Inventory.Items
|