eq2emu/docs/lua_functions/RemoveInvis.md

24 lines
605 B
Markdown
Raw Permalink Normal View History

2025-05-25 21:42:32 -04:00
### Function: RemoveInvis(spawn)
2025-05-04 14:34:15 -04:00
**Description:**
2025-05-25 21:42:32 -04:00
Remove invisible from the spawn. Spawn is optional, otherwise in a spell script applies to all spell targets.
2025-05-04 14:34:15 -04:00
**Parameters:**
2025-05-25 21:42:32 -04:00
- `spawn` (Spawn) - Spawn object representing `spawn`.
2025-05-04 14:34:15 -04:00
**Returns:** None.
**Example:**
```lua
2025-05-25 21:42:32 -04:00
-- From SpawnScripts/Caves/acuriousrock.lua
function casted_on(NPC, Spawn, Message)
if Message == "smash" then
SetAccessToEntityCommand(Spawn,NPC,"smash", 0)
SpawnSet(NPC, "show_command_icon", 0)
SpawnSet(NPC, "display_hand_icon", 0)
if IsStealthed(Spawn) then
-- RemoveStealth(NPC,Spawn)
end
2025-05-04 14:34:15 -04:00
```