SpawnGlitter: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: '''SpawnGlitter''' (string ''type'' [, int ''momentum'' [, int ''mode'' [, int ''radius'']]])<br> ==Usage== SpawnGlitter is a glitter spawning function, similar to the teleporters from H...)
 
m (Corrections)
Line 1: Line 1:
'''SpawnGlitter''' (string ''type'' [, int ''momentum'' [, int ''mode'' [, int ''radius'']]])<br>
'''SpawnGlitter''' (string ''type'' [, int ''momentum''])<br>


==Usage==
==Usage==


SpawnGlitter is a glitter spawning function, similar to 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 square around the source object, and will be given z momentum specified in Args2. If the thing type given in Args1 is invalid, this codepointer will do nothing.
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 64-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===


*type: The thing type to spawn.
*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 = +1/4 unit)
*momentum: Fixed-point amount of z momentum to apply to the object. (Default of 0 = 0.25 units/tic)
*mode: Mode select: (Default of 0 = Normal)
**0 = Normal (spawn at floor z, apply z momentum)
**1 = Spawn at floor z, do not apply z momentum
**2 = Spawn at random z within thing's height, apply z momentum
**3 = Spawn at random z within thing's height, do not apply z momentum
*radius: Optional radius of effect (default of 0 = 32 units)  


[[Category:Codepointers]]
[[Category:Codepointers]]

Revision as of 21:47, 21 April 2009

SpawnGlitter (string type [, int momentum])

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 64-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

  • 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)