WeaponProjectile
From Eternity Wiki
Jump to navigationJump to search
Description
Generic weapon projectile attack.
Usage
A_WeaponProjectile(type, angle, pitch, horizontal_offset, vertical_offset)
Parameters
- type: name of thing type of projectile to spawn (shoot)
- angle: optional yaw (turning left-right) angle (in degrees) to add to projectile direction
- pitch: optional pitch (looking up-down) angle (in degrees) to add to projectile direction
- horizontal_offset: optional offset in front of player to spawn projectile
- vertical_offset: optional vertical offset above normal firing height to add to projectile
Examples
No examples given.
Notes
This is MBF21's implementation of a generic player projectile attack. Eternity has its own FirePlayerMissile which however does not offer angle, pitch and offset options. Instead it allows specifying homing capability (which can also be set with MBF21's FindTracer) and whether to consume ammo (this one does not consume any ammo, but you can have another frame with ConsumeAmmo to do it).