No categories assigned

LUA:GetEquippedItemBySlot

Revision as of 18:58, 13 August 2013 by Thefoof (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function will return an item pointer from a player.

Syntax

GetEquippedItemBySlot([Spawn] Player, [int8] slot)

Usage

function hailed(NPC, Spawn)
    GetEquippedItemBySlot(Spawn, 0)
end

This will return an item pointer to the primary weapon of "Spawn".


Back to LUA Get Functions Index