1
0
EQ2Emu/docs/lua_functions/IsPlayer.md
2025-05-14 09:46:52 -04:00

404 B
Raw Blame History

Function: IsPlayer(Player)

Description: Checks if Player is an actual Player or Spawn.

Parameters:

  • Player: Spawn - The spawn or entity to check.

Returns: Boolean true if this spawn is a Player; false if not.

Example:

-- Example usage (NPC will attack stealthed players only if it can see invis) if IsPlayer(Target) or CanSeeInvis(NPC, Target) then Attack(NPC, Target) end