No categories assigned

LUA:used

Revision as of 18:37, 9 May 2013 by Thefoof (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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