SetEncounterSpawnsCurrent(int, object)
Sets the number of times that an encounter has spawned.
void SetEncounterSpawnsCurrent( int nNewValue, object oEncounter = OBJECT_SELF );
Parameters
nNewValue
The new number of times the encounter has spawned.
oEncounter
The encounter to change the value of. (Default: OBJECT_SELF)
Description
Sets the number of times that oEncounter has spawned so far.
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.
Version
1.61
See Also
functions: | GetEncounterSpawnsCurrent |
categories: | Encounter Functions |
author: Tom Cassiotis, editor: Lilac Soul