A_FireCustomMissile
From ZDoom Wiki
A_FireCustomMissile (string missiletype [, angle angle [, bool useammo [, int spawnofs_horz [, int spawnheight [, int aim]]]]])
Fires a projectile from a weapon. Optionally you can specify an angle and a spawn offset. With useammo you can specify whether this attack uses ammo or not.
aim becomes relevant when playing with autoaim on:
- If aim is unspecified or set to zero, the engine looks at the player's horizontal aim. If the horizontal line of fire cuts close enough to a valid target (ignoring vertical aim), the resulting projectile will fire with the vertical angle adjusted to aim directly at the target.
- If aim is set to some other value, the engine looks at the horizontal line of fire projected for the projectile, independent of the player's aim. If the horizontal line of fire cuts close enough to a valid target (again ignoring vertical aim), that projectile will fire directly towards that target.
You cannot turn off vertical autoaim with this function.
Examples
Fire:
TRIF A 5 Bright A_FireCustomMissile("RifleBullet",0,1,8,8,0)
TRIF B 5 Bright
TRIG A 10
TRIG B 0 A_Refire
Goto Ready

