2025-05-23 11:50:05 -04:00
|
|
|
### Function: SetVisualFlag(spawn)
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
|
|
|
**Description:**
|
2025-05-23 11:50:05 -04:00
|
|
|
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:**
|
2025-05-23 11:50:05 -04:00
|
|
|
- `spawn` (Spawn) - Spawn object representing `spawn`.
|
2025-05-04 14:34:15 -04:00
|
|
|
|
|
|
|
|
**Returns:** None.
|
|
|
|
|
|
|
|
|
|
**Example:**
|
|
|
|
|
|
|
|
|
|
```lua
|
2025-05-23 11:50:05 -04:00
|
|
|
-- 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
|
|
|
```
|