SetEncounterSpawnsMax(int, object)
From NWN Lexicon
Jump to navigationJump to searchSets the maximum number of times that an encounter can spawn.
Parameters
- nNewValue
- The new maximum spawn value.
- oEncounter
- The encounter to have its value changed. (Default: OBJECT_SELF)
Description
Sets the maximum number of times that oEncounter can spawn.
You can set to -1 for unlimited spawns. Or 0 to disable any spawns.
Remarks
The spawn-part of an encounter fires BEFORE the encounter's OnEnter does. Thus, if you call this in the OnEnter event, it will not have any effect on the group being spawned. You can draw a trigger around the encounter and call this function from OnEnter of that trigger instead as a workaround.
See Also
functions: |
author: Tom Cassiotis, editor: Lilac Soul