1
0
EQ2Emu/docs/lua_functions/IsPlayer.md
2025-05-28 21:48:33 -04:00

18 lines
419 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 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:**
```lua
-- 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
```