No categories assigned

LUA:GetEquippedItemBySlot

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