User Tools

Site Tools


builders:spawner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
builders:spawner [2021/03/09 12:43] – created amandabuilders:spawner [2022/12/21 12:50] (current) amanda
Line 13: Line 13:
 Set properties on the prototype -  Set properties on the prototype - 
  
-respawnTime - how long in seconds before respawning.   Either a fixed number e.g. 10,  or a range e.g. 60-120.  If a range, a random number is chosen between these ranges.  Default is 10-120. +//respawnTime// - how long in seconds before respawning.   Either a fixed number e.g. 10,  or a range e.g. 60-120.  If a range, a random number is chosen between these ranges.  Default is 10-120.\\ 
-spawnCheckFrequency - how often, in seconds, to check if this item needs to be replaced.   Default 20.+//spawnCheckFrequency// - how often, in seconds, to check if this item needs to be replaced.   Default 20.
  
 - timing is approximate and dependent on global ticker frequency too. - timing is approximate and dependent on global ticker frequency too.
 +
 +
 +==== Group Spawners ====
 +
 +As an alternative, use fiddle to set an action script of "group spawner" (11) on any object.  Set property //spawngroup// with an id.  Of all spawners in the same group, only one will have an item show up.  Only property //respawnTime// is used and works slightly differently - each individual spawner is checked this often, and only if all are empty, a new item is created. This means that the items might reappear quickly, but no less often than this setting.  Make sure you use a range, so each spawner gets a random interval, so that respawns are spread out.  If they are all a fixed value, it is likely they will be processed in the same order every time, and thus the same spawner will keep triggering each time.
 +
 +There is no specific requirement for all spawners in a group to be identical objects...
builders/spawner.1615293824.txt.gz · Last modified: 2021/03/09 12:43 by amanda