eq2emu/docs/lua_functions/SetVisualFlag.md

23 lines
546 B
Markdown
Raw Permalink Normal View History

### Function: SetVisualFlag(spawn)
2025-05-04 14:34:15 -04:00
**Description:**
Set the visual flag on the Spawn to initiate a update on the Spawns visual data.
2025-05-04 14:34:15 -04:00
**Parameters:**
- `spawn` (Spawn) - Spawn object representing `spawn`.
2025-05-04 14:34:15 -04:00
**Returns:** None.
**Example:**
```lua
-- From SpawnScripts/Antonica/HaddekVimki.lua
function spawn(NPC)
ProvidesQuest(NPC, RunningOutOfBeer)
ProvidesQuest(NPC, OuchMyHead)
ProvidesQuest(NPC, RiseAndShineWine)
ProvidesQuest(NPC, PracticalJokeOnBlarton)
SetPlayerProximityFunction(NPC, 10, "InRange", Spawn)
end
2025-05-04 14:34:15 -04:00
```