FirePlayerMissile: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: '''FirePlayerMissile''' (string ''type'' [, bool ''homing''])<br> ==Usage== FirePlayerMissile is a parameterized player weapon codepointer. This codepointer allows a custom player projec...)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''FirePlayerMissile''' (string ''type'' [, bool ''homing''])<br>
{{Codepointer |
 
description='''FirePlayerMissile''' is a parameterized player weapon codepointer. This codepointer allows a custom player projectile attack. |
==Usage==
usage='''FirePlayerMissile''' (''type'', ''flags'')|
 
parameters=*''type'': Thing type mnemonic of projectile to shoot.
FirePlayerMissile is a parameterized player weapon codepointer. This codepointer allows a custom player projectile attack.
*''flags'': can be a combination of the following:
 
**1 or '''homing''': may home (if calling any of the homing maintenance codepointers, it will target whatever's in sight)
===Parameters===
**2 or '''noammo''': do not consume ammo.
 
**For none of the above you can specify '''normal'''.
*type: Thing type to shoot.
*homing: Select homing property:
**0: will not home
**1: may home
 
If homing is set to 1 and the missile fired has a homing maintenance codepointer in its frames, the missile will home on the player's current autoaiming target, if one exists. These homing maintenance pointers include [[Tracer]], [[GenTracer]], [[HticTracer]], and [[WhirlwindSeek]].


|notes=If ''flags'' contains '''homing''' and the missile fired has a homing maintenance codepointer in its frames, the missile will home on the player's current autoaiming target, if one exists. These homing maintenance pointers include [[Tracer]], [[GenTracer]], [[HticTracer]], and [[WhirlwindSeek]], as well as MBF21 additions.
|
examples=|
seealso=*[[FireCustomBullets]]
*[[List_of_codepointers#Attacks|Player attack codepointers]]
}}
[[Category:Codepointers]]
[[Category:Codepointers]]

Latest revision as of 15:55, 23 October 2024

Description

FirePlayerMissile is a parameterized player weapon codepointer. This codepointer allows a custom player projectile attack.

Usage

FirePlayerMissile (type, flags)

Parameters

  • type: Thing type mnemonic of projectile to shoot.
  • flags: can be a combination of the following:
    • 1 or homing: may home (if calling any of the homing maintenance codepointers, it will target whatever's in sight)
    • 2 or noammo: do not consume ammo.
    • For none of the above you can specify normal.

Examples

Notes

If flags contains homing and the missile fired has a homing maintenance codepointer in its frames, the missile will home on the player's current autoaiming target, if one exists. These homing maintenance pointers include Tracer, GenTracer, HticTracer, and WhirlwindSeek, as well as MBF21 additions.

See also