A_ThrowGrenade

From ZDoom Wiki

Jump to: navigation, search

A_ThrowGrenade (string spawntype [float spawnheight [, float throwspeed_horz [, float throwspeed_vert [, bool useammo]]]])


Spawns a projectile and throws it like a grenade. This function can be used for monsters, inventory items and weapons. useammo only has an effect when used with a weapon.

The parameters are:

  • spawntype
Type of the projectile to be spawned.
  • spawnheight
Height at which the projectile is spawned. The function adds 35 to this so that passing 0 means at the center of the throwing actor.
  • throwspeed_horz, throwspeed_vert
Speed with which the object is thrown.

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.
Personal tools