Difference between revisions of "A FireCustomMissile"

From ECWolf Wiki
(Created page with "'''A_FireCustomMissile''' (string ''missiletype''[, float ''angle''[, bool ''useammo''[, int ''spawnoffset''[, int ''spawnheight''[, bool ''aim''[, float ''pitch'']]]]]]) Fir...")
 
Line 6: Line 6:
 
* ''useammo'': Sets whether the attack uses ammo or not.
 
* ''useammo'': Sets whether the attack uses ammo or not.
 
* ''spawnoffset'': Horizontal offset of the attack.
 
* ''spawnoffset'': Horizontal offset of the attack.
* ''spawnheight'': Vertical offset of the attack. Ignored for now, keep default value of 0.
+
* ''spawnheight'': Vertical offset of the attack. Ignored for now, but should be set to the player class's -(height/2 + 8) in order to keep it spawning at the floor level in future versions of ECWolf.
 
* ''aim'': Currently unimplemented.  Keep default value of false.
 
* ''aim'': Currently unimplemented.  Keep default value of false.
 
* ''pitch'': Pitch offset. Ignored for now, keep default value of 0.
 
* ''pitch'': Pitch offset. Ignored for now, keep default value of 0.

Revision as of 00:05, 3 October 2012

A_FireCustomMissile (string missiletype[, float angle[, bool useammo[, int spawnoffset[, int spawnheight[, bool aim[, float pitch]]]]]])

Fire a player projectile.

  • missiletype: Actor to use as projectile.
  • angle: Relative angle to fire the projectile in.
  • useammo: Sets whether the attack uses ammo or not.
  • spawnoffset: Horizontal offset of the attack.
  • spawnheight: Vertical offset of the attack. Ignored for now, but should be set to the player class's -(height/2 + 8) in order to keep it spawning at the floor level in future versions of ECWolf.
  • aim: Currently unimplemented. Keep default value of false.
  • pitch: Pitch offset. Ignored for now, keep default value of 0.