wiki.sine.space | sinespace

Scripting/SInventory

From wiki.sine.space
Revision as of 10:17, 12 December 2020 by Voidtech (Talk | contribs) (Added simple example to SInventory .Authorize() .Items .RequestRefresh())

Jump to: navigation, search

The SInventory class allows you to access a users inventory

Members

Authorize

void Authorize ();

Prompts the user to grant access to inventory to the script. Big nasty warning box.

 Space.Inventory.Authorize()


RequestRefresh

void RequestRefresh ();

Forces a check for external changes to the users inventory, can only be called once every 60 seconds

Space.Inventory.RequestRefresh()


Properties

Items[]

SInventoryItem Items[] { get; }

Returns the array of the users current inventory items

invItems = Space.Inventory.Items