afxMachineGunData
A datablock that specifies a Machine Gun effect.
Public Attributes
A ProjectileData datablock describing the projectile to be launched.
int
Specifies the number of projectiles fired over a minute of time. A value of 1200 will create 20 projectiles per second.
Detailed Description
A datablock that specifies a Machine Gun effect.
Machine Gun is a simple but useful effect for rapidly shooting standard Torque Projectile objects. For performance reasons, keep in mind that each bullet is a separate Projectile object, which is not a very lightweight object.
Public Attributes
ProjectileData Projectile
A ProjectileData datablock describing the projectile to be launched.
int roundsPerMinute
Specifies the number of projectiles fired over a minute of time. A value of 1200 will create 20 projectiles per second.
Sample values for real machine guns: AK-47 = 600, M16 = 750-900, UZI = 600