Reset
Resets the item system.
Syntax
ItemSystem.Reset()
GiveItem
Gives the specified item.
Syntax
ItemSystem.GiveItem( itemName )
Parameter | Description |
---|---|
itemName | Item name. |
GiveItemPack
Gives the item pack to the specified actor.
Syntax
ItemSystem.GiveItemPack( actorId, packName )
Parameter | Description |
---|---|
actorId | Actor identifier. |
packName | Pack name. |
GetPackPrimaryItem
Gets the primary item of the specified pack.
Syntax
ItemSystem.GetPackPrimaryItem( packName )
Parameter | Description |
---|---|
packName | Pack name. |
GetPackNumItems
Get the number of items in the specified pack.
Syntax
ItemSystem.GetPackNumItems()
Parameter | Description |
---|---|
packName | Pack name. |
GetPackItemByIndex
Gets a pack item from its index.
Syntax
ItemSystem.GetPackItemByIndex( packName, index )
Parameter | Description |
---|---|
packName | Pack name. |
index | Pack index. |
SetActorItem
Sets an actor item.
Syntax
ItemSystem.SetActorItem( actorId, itemId, keepHistory )
Parameter | Description |
---|---|
actorId | Actor identifier. |
itemId | Item identifier. |
keepHistory | True to keep history, false otherwise. |
SetActorItemByName
Sets an actor item by name.
Syntax
ItemSystem.SetActorItemByName( actorId, name, keepHistory )
Parameter | Description |
---|---|
actorId | Actor identifier. |
name | Actor item name. |
keepHistory | True to keep history, false otherwise. |
SerializePlayerLTLInfo
Serializes player LTL info.
Syntax
ItemSystem.SerializePlayerLTLInfo( reading )
Parameter | Description |
---|---|
reading | Boolean value. |
Overview
Content Tools