Difference between revisions of "LUA:used"

(Created page with "This function is called when an item is used. ==== Syntax ==== used(Item, Player) ==== Usage ==== <pre> function used(Item, Player) Say(Player, "item used") end </pre> When...")
 
(No difference)

Latest revision as of 18:37, 9 May 2013

This function is called when an item is used.

Syntax

used(Item, Player)

Usage

function used(Item, Player)
    Say(Player, "item used")
end

When item with this function in it's script is used the play who used the item will say "item used".


Back to LUA Items Index