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