No categories assigned
LUA:GetEquippedItemBySlot
- Last edited 12 years ago by I need to Update My Profile
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".