Difference between revisions of "A CustomMissile"
From ECWolf Wiki
(Created page with "'''A_CustomMissile''' (string ''missiletype''[, float ''spawnheight''[, int ''spawnoffset''[, float ''angle''[, int ''aimflags'']]]]) Spawns the specified monster projectile ...") |
m (Clarified that the projectile is aimed towards the player.) |
||
Line 1: | Line 1: | ||
'''A_CustomMissile''' (string ''missiletype''[, float ''spawnheight''[, int ''spawnoffset''[, float ''angle''[, int ''aimflags'']]]]) | '''A_CustomMissile''' (string ''missiletype''[, float ''spawnheight''[, int ''spawnoffset''[, float ''angle''[, int ''aimflags'']]]]) | ||
− | Spawns the specified monster projectile | + | Spawns the specified monster projectile aimed towards the target. Note that this function does not automatically call [[A_FaceTarget]], so the monster may face a different direction than the projectile is fired. |
* ''missiletype'': Actor to spawn. | * ''missiletype'': Actor to spawn. | ||
* ''spawnheight'': The height from the ground to spawn the projectile. This is currently ignored by ECWolf and should always be 32. | * ''spawnheight'': The height from the ground to spawn the projectile. This is currently ignored by ECWolf and should always be 32. | ||
Line 7: | Line 7: | ||
* ''angle'': The relative angle in which to fire. | * ''angle'': The relative angle in which to fire. | ||
* ''aimflags'': Changes the behavor of the function. | * ''aimflags'': Changes the behavor of the function. | ||
− | ** '''CMF_AIMOFFSET''' - The projectile is aimed as if it had an offset of 0. | + | ** '''CMF_AIMOFFSET''' - The projectile is aimed as if it had an offset of 0. Useful for firing projectiles to multiple locations. |
Latest revision as of 05:13, 10 January 2013
A_CustomMissile (string missiletype[, float spawnheight[, int spawnoffset[, float angle[, int aimflags]]]])
Spawns the specified monster projectile aimed towards the target. Note that this function does not automatically call A_FaceTarget, so the monster may face a different direction than the projectile is fired.
- missiletype: Actor to spawn.
- spawnheight: The height from the ground to spawn the projectile. This is currently ignored by ECWolf and should always be 32.
- spawnoffset: The horizontal offset that the projectile is fired from.
- angle: The relative angle in which to fire.
- aimflags: Changes the behavor of the function.
- CMF_AIMOFFSET - The projectile is aimed as if it had an offset of 0. Useful for firing projectiles to multiple locations.