SpawnMissile
Jump to navigation
Jump to search
native Actor SpawnMissile(Actor dest, class<Actor> type, Actor owner = null)
Usage
This is one of the highly generalized projectile-spawning functions that can be used in actors. It fires a projectile at the specified actor pointer.
Functions like a significantly abbreviated version of A_SpawnProjectile.
Parameters
- Actor dest
- Pointer to the actor to aim the projectile at.
- class<Actor> type
- The class name of the projectile to fire.
- Actor owner
- Pointer to the actor who should be considered the shooter of the projectile.
Examples
The A_CyberAttack function used by Doom's Cyberdemon uses this function:
void A_CyberAttack()
{
if (target)
{
A_FaceTarget();
SpawnMissile (target, "Rocket");
}
}