1
0
EQ2Emu/docs/lua_functions/CanSeeInvis.md
2025-05-13 22:57:49 -04:00

17 lines
615 B
Markdown
Raw 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: CanSeeInvis(Player, Target)
Description: Checks if the given NPC or player can see invisible entities. Some NPCs have see-invis or see-stealth abilities, which this would indicate.
Parameters:
Player/Entity: Spawn The Player/Entity to check for see-invisibility capability.
Target: Spawn The entity to check if Player can see them.
Returns: Boolean true if this spawn can detect invisible targets; 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