User Tools

Site Tools


equip_item

Equip Item


(WIP)

Equips an item to the specified slot of a character's equipment. If the item is stackable, the optional “count” parameter can be provided to equip more than one into the slot. Note that the character must first have the item in their inventory in order for this function to work.

Signature:

equip_item(character, slot_id, item_id, count)
ArgumentDescriptionTypeRequired
character EntityYes
slot_id StringYes
item_id StringYes
count NumberNo

Example:

 

Results:

Use the Equip Item function to…


Editor Node:

equip_item.txt · Last modified: 2024/02/22 21:04 by justin