ScriptBind_ItemSystem

Reset

Resets the item system.

ItemSystem.Reset()

GiveItem

Gives the specified item.

ItemSystem.GiveItem( itemName )
ParameterDescription
itemNameItem name.

GiveItemPack

Gives the item pack to the specified actor.

ItemSystem.GiveItemPack( actorId, packName )
ParameterDescription
actorIdActor identifier.
packNamePack name.

GetPackPrimaryItem

Gets the primary item of the specified pack.

ItemSystem.GetPackPrimaryItem( packName )
ParameterDescription
packNamePack name.

GetPackNumItems

Get the number of items in the specified pack.

ItemSystem.GetPackNumItems()
ParameterDescription
packNamePack name.

GetPackItemByIndex

Gets a pack item from its index.

ItemSystem.GetPackItemByIndex( packName, index )
ParameterDescription
packNamePack name.
indexPack index.

SetActorItem

Sets an actor item.

ItemSystem.SetActorItem( actorId, itemId, keepHistory )
ParameterDescription
actorIdActor identifier.
itemIdItem identifier.
keepHistoryTrue to keep history, false otherwise.

SetActorItemByName

Sets an actor item by name.

ItemSystem.SetActorItemByName( actorId, name, keepHistory )
ParameterDescription
actorIdActor identifier.
nameActor item name.
keepHistoryTrue to keep history, false otherwise.

SerializePlayerLTLInfo

Serializes player LTL info.

ItemSystem.SerializePlayerLTLInfo( reading )
ParameterDescription
readingBoolean value.