Difference between revisions of "LUA:GetEquippedItemByID"

(Created page with "This function will return an item pointer from a player. ==== Syntax ==== GetEquippedItemByID([Spawn] Player, [int32] item_id) ==== Usage ==== <pre> function hailed(NPC, Spawn)...")
 
(No difference)

Latest revision as of 19:00, 13 August 2013

This function will return an item pointer from a player.

Syntax

GetEquippedItemByID([Spawn] Player, [int32] item_id)

Usage

function hailed(NPC, Spawn)
    GetEquippedItemByID(Spawn, 12345678)
end


When an npc with this function is hailed, this function will return the pointer to an equipped item with the id of 12345678, if the player has this item equipped.


Back to LUA Get Functions Index