Editing MissileSpread

From Eternity Wiki
Jump to navigationJump 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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{codepointer|description=Convenience codepointer for firing a barrage of missiles in an angular sweep.
Type: Monster attack, parameterized
|usage='''MissileSpread'''(''type'', ''number'', ''addz'', ''sweep'', ''melee'')
 
|parameters=
Parameter Information:
*''type'': Mnemonic of thing type to fire (no default, must be valid)
*Args1 = 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)
*Args2 = 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)
*Args3 = 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)
*Args4 = 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)
*Args5 = 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.
Purpose: Convenience codepointer for firing a barrage of missiles in an angular sweep. The object will face its target and begin firing missiles at its angle minus half the Args4 sweep value. It will then step Args4 / (Args2 - 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 Args5 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=
==See also==
*[[MissileAttack]]}}
*[[MissileAttack]]
 
[[Category:Codepointers]]
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: