You are viewing an old version of this page. Return to the latest version.
Version of 18:58, 13 August 2013 by I need to Update My Profile
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
GetEquippedItem([Spawn] Player, [int8] slot)
Usage
function hailed(NPC, Spawn)
HasItemEquipped(Spawn, 0)
end
This will return an item pointer to the primary weapon of "Spawn".