SpawnGlitter: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
m (Corrections) |
(Fixed wrong size) |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
SpawnGlitter is a glitter spawning function, used by the teleporters from Heretic. It can be used to make a fountain of any type of object. One object will be spawned at a randomized coordinate within a | SpawnGlitter is a glitter spawning function, used by the teleporters from Heretic. It can be used to make a fountain of any type of object. One object will be spawned at a randomized coordinate within a 32-unit square around the source object, and will be given z momentum specified in the second argument, given in eighths of a unit per tic. | ||
===Parameters=== | ===Parameters=== |
Latest revision as of 15:40, 7 January 2016
SpawnGlitter (string type [, int momentum])
Usage[edit]
SpawnGlitter is a glitter spawning function, used by the teleporters from Heretic. It can be used to make a fountain of any type of object. One object will be spawned at a randomized coordinate within a 32-unit square around the source object, and will be given z momentum specified in the second argument, given in eighths of a unit per tic.
Parameters[edit]
- type: The thing type to spawn. If invalid, "Unknown" will be used.
- momentum: Fixed-point amount of z momentum to apply to the object. (Default of 0 = 0.25 units/tic)