eq2emu/docs/lua_functions/IsInvis.md

21 lines
396 B
Markdown
Raw Permalink Normal View History

2025-05-27 09:56:36 -04:00
### Function: IsInvis(spawn)
2025-05-04 14:34:15 -04:00
**Description:**
2025-05-27 09:56:36 -04:00
Return's true if the spawn is invisible, otherwise false.
2025-05-04 14:34:15 -04:00
**Parameters:**
2025-05-27 09:56:36 -04:00
- `spawn` (Spawn) - Spawn object representing `spawn`.
2025-05-04 14:34:15 -04:00
2025-05-27 09:56:36 -04:00
**Returns:** Return's true if the spawn is invisible, otherwise false.
2025-05-04 14:34:15 -04:00
**Example:**
```lua
2025-05-27 09:56:36 -04:00
-- made up example
function casted_on(NPC, Spawn, Message)
if IsInvis(Spawn) then
-- RemoveInvis(NPC,Spawn)
end
2025-05-04 14:34:15 -04:00
```