RigidbodyProjectile

Members

Member

Description

armorDamage

The minimum armor rating that this projectile can damage

balanceDamage

The balance damage value dealt when hitting a hitbox

damage

The health damage value dealt when hitting a hitbox

distanceTravelled

The total distance the projectile has travelled

gameObject

gravityMultiplier

The amount of gravity affecting the path of this projectile

impactForce

The force applied to any hit rigidbody

isExplodingProjectile

True if the projectile is an ExplodingProjectile.

isGrenadeProjectile

True if the projectile is a GrenadeProjectile.

isRigidbodyProjectile

True if the projectile is a RigidbodyProjectile.

isRocketProjectile

True if the projectile is a RocketProjectile.

isTargetSeekingMissileProjectile

True if the projectile is a TargetSeekingMissileProjectile.

isTravellingTowardsPlayer

Returns true if the projectile is heading towards the player actor, otherwise false

killCredit

The actor who fired the projectile

source

sourceWeapon

Gets the weapon that fired this projectile

transform

velocity

The current movement velocity of the projectile

Methods

Method

Description

Stop(silent)

Stops and destroys the projectile.

ToString()

Details

class RigidbodyProjectile
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

Actor source
const Weapon sourceWeapon

Gets the weapon that fired this projectile

const Transform transform
Vector3 velocity

The current movement velocity of the projectile

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()