2025-05-28 21:48:33 -04:00
|
|
|
|
### Function: SetSeeInvis(Spawn, Enable)
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
2025-05-28 21:48:33 -04:00
|
|
|
|
**Description:** Toggles an NPC’s ability to see invisible on or off.
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
2025-05-28 21:48:33 -04:00
|
|
|
|
**Parameters:**
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
2025-05-28 21:48:33 -04:00
|
|
|
|
`Spawn`: Spawn – The NPC whose invis detection to set.
|
|
|
|
|
|
`Enable`: Boolean – true to grant see-invis; false to revoke it.
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
2025-05-28 21:48:33 -04:00
|
|
|
|
**Returns:** None.
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
2025-05-28 21:48:33 -04:00
|
|
|
|
**Example:**
|
2025-05-15 09:50:31 -04:00
|
|
|
|
|
2025-05-28 21:48:33 -04:00
|
|
|
|
```lua
|
2025-05-15 09:50:31 -04:00
|
|
|
|
-- Example usage (temporarily allow a boss to see invis during a phase)
|
2025-05-28 21:48:33 -04:00
|
|
|
|
SetSeeInvis(BossNPC, true)
|
|
|
|
|
|
```
|