Editing
MissileSpread
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{codepointer|description=Convenience codepointer for firing a barrage of missiles in an angular sweep. |usage='''MissileSpread'''(''type'', ''number'', ''addz'', ''sweep'', ''melee'') |parameters= *''type'': Mnemonic of thing type to fire (no default, must be valid) *''number'': Number of missiles to fire (MUST be greater than or equal to 2) *''addz'': Amount to add to standard z missile firing height (32 units, default of 0 = 0, can be negative) *''sweep'': Total angular sweep of attack in degrees (default of 0 = 0) *''melee'': Mnemonic of state to enter for optional melee attack (default of 0 = 0, negative values = no melee attack) |notes= The object will face its target and begin firing missiles at its angle minus half the ''sweep'' value. It will then step ''sweep'' / (''number'' - 1) degrees for each additional missile, spreading them out evenly, centered on the actor's angle. Thus, the angular sweep is the total separation between the first and last missiles in degrees. This codepointer can only be used to fire 2 or more missiles. Providing a value of 0 or 1 will cause it to stop without attacking. The ''melee'' parameter can be used to specify a frame to use for an optional melee attack, used when the object is within melee range of its target. This parameter should be set to -1 unless a valid frame DeHackEd number or EDF mnemonic is provided. |seealso= *[[MissileAttack]]}}
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Codepointer
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information