Projectile¶
Members¶
Member |
Description |
---|---|
The minimum armor rating that this projectile can damage |
|
The balance damage value dealt when hitting a hitbox |
|
The health damage value dealt when hitting a hitbox |
|
The total distance the projectile has travelled |
|
The amount of gravity affecting the path of this projectile |
|
The force applied to any hit rigidbody |
|
True if the projectile is an ExplodingProjectile. |
|
True if the projectile is a GrenadeProjectile. |
|
True if the projectile is a RigidbodyProjectile. |
|
True if the projectile is a RocketProjectile. |
|
True if the projectile is a TargetSeekingMissileProjectile. |
|
Returns true if the projectile is heading towards the player actor, otherwise false |
|
The actor who fired the projectile |
|
Gets the weapon that fired this projectile |
|
The current movement velocity of the projectile |
Methods¶
Method |
Description |
---|---|
Stops and destroys the projectile. |
|
Details¶
-
class
Projectile
¶ -
ArmorRating
armorDamage
¶ The minimum armor rating that this projectile can damage
-
float
balanceDamage
¶ The balance damage value dealt when hitting a hitbox
-
float
damage
¶ The health damage value dealt when hitting a hitbox
-
const float
distanceTravelled
¶ The total distance the projectile has travelled
-
const GameObject
gameObject
¶
-
float
gravityMultiplier
¶ The amount of gravity affecting the path of this projectile
-
float
impactForce
¶ The force applied to any hit rigidbody
-
const bool
isExplodingProjectile
¶ True if the projectile is an ExplodingProjectile. If true, you can safely access fields via the ExplodingProjectile class API.
-
const bool
isGrenadeProjectile
¶ True if the projectile is a GrenadeProjectile. If true, you can safely access fields via the GrenadeProjectile class API.
-
const bool
isRigidbodyProjectile
¶ True if the projectile is a RigidbodyProjectile. If true, you can safely access fields via the RigidbodyProjectile class API.
-
const bool
isRocketProjectile
¶ True if the projectile is a RocketProjectile. If true, you can safely access fields via the RocketProjectile class API.
-
const bool
isTargetSeekingMissileProjectile
¶ True if the projectile is a TargetSeekingMissileProjectile. If true, you can safely access fields via the TargetSeekingMissileProjectile class API.
-
const bool
isTravellingTowardsPlayer
¶ Returns true if the projectile is heading towards the player actor, otherwise false
-
Actor
killCredit
¶ The actor who fired the projectile If the projectile kills a target, this is the actor that is awarded the kill
-
void
Stop
(bool silent)¶ Stops and destroys the projectile. Exploding projectiles trigger an explosion if silent is false, otherwise they are immediately destroyed.
-
string
ToString
()¶
-
ArmorRating