SteamSpawn: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''SteamSpawn''' (string ''type'', int ''range_horiz'', int ''angle_vert'', int ''range_vert'', int ''speed'')<br>
{{codepointer|description=Spawns and thrusts objects within randomized horizontal and vertical angular sweeps. Angular ranges should be values between 0 and 359.
 
|usage='''SteamSpawn''' (string ''type'', int ''range_horiz'', int ''angle_vert'', int ''range_vert'', int ''speed'')
==Usage==
|parameters=
 
Spawns and thrusts objects within randomized horizontal and vertical angular sweeps. Angular ranges should be values between 0 and 359.
 
===Parameters===
 
*type: Name of the thingtype to spawn.
*type: Name of the thingtype to spawn.
*range_horiz: Horizontal angular range, centered on thing's angle.
*range_horiz: Horizontal angular range, centered on thing's angle.
Line 12: Line 7:
*range_vert: Vertical angular range, centered on angle_vert.
*range_vert: Vertical angular range, centered on angle_vert.
*speed: Speed at which to thrust the spawned objects.
*speed: Speed at which to thrust the spawned objects.
 
|notes=
==See also==
*If you plan to use this for projectile trails, you will need a negative ''speed'' if you want the trails to fly behind the projectile
*[[List of codepointers]]
*Too small angle values may be cancelled due to a lower resolution than 360 degrees.
 
}}
[[Category:Codepointers]]

Latest revision as of 15:57, 13 February 2021

Description

Spawns and thrusts objects within randomized horizontal and vertical angular sweeps. Angular ranges should be values between 0 and 359.

Usage

SteamSpawn (string type, int range_horiz, int angle_vert, int range_vert, int speed)

Parameters

  • type: Name of the thingtype to spawn.
  • range_horiz: Horizontal angular range, centered on thing's angle.
  • angle_vert: Vertical angle.
  • range_vert: Vertical angular range, centered on angle_vert.
  • speed: Speed at which to thrust the spawned objects.

Examples

No examples given.

Notes

  • If you plan to use this for projectile trails, you will need a negative speed if you want the trails to fly behind the projectile
  • Too small angle values may be cancelled due to a lower resolution than 360 degrees.

See also