Craig Martin

(Official) LUA Scripting Documentation

equip

Cause the context actor to equip an item.


Spec:

equip(
	long item_id,
	string slot)

Parameters


Valid values for slot: “left”, “right”, “body”


Examples

equip(item.woodsword,"right")

This example equips a wood sword (if the actor has one) to their right hand


equip(item.leatherhelmet,"body")

This example equips a leather helmet (if the actor has one) to the appropriate body slot


Incomplete

This documentation is incomplete


back