Difference between revisions of "LUA:IsPlayer"
(Created page with "= LUA Functions: IsPlayer() = Checks to see if the given spawn is a player ==== Syntax ==== var = IsPlayer(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''pa...") |
(No difference)
|
Latest revision as of 20:44, 11 September 2013
LUA Functions: IsPlayer()
Checks to see if the given spawn is a player
Syntax
var = IsPlayer(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn we want to check
Usage
function hailed(NPC, Spawn)
if IsPlayer(Spawn) then
Say(NPC, "You are a player")
end
end
The NPC will respond if the spawn that hailed it is a player
Notes
Returns a bool