Difference between revisions of "LUA:HasPendingLoot"
(Created page with "= LUA Functions: HasPendingLoot() = Checks to see if the given player has pending loot with the given entity ==== Syntax ==== var = HasPendingLoot(param1, param2) ==== Parame...") |
(No difference)
|
Latest revision as of 20:31, 11 September 2013
LUA Functions: HasPendingLoot()
Checks to see if the given player has pending loot with the given entity
Syntax
var = HasPendingLoot(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (Spawn)
- param1 is the spawn we want to check
- param2 is the player we want to check
Usage
function hailed(NPC, Spawn)
if HasPendingLoot(NPC, Spawn) then
Say(NPC, "You have pending loot with me")
end
end
The NPC will respond if the player has pending loot with it
Notes
Returns a bool