Arma Reforger Script API
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BallisticTable Interface Reference
Inheritance diagram for BallisticTable:
[legend]

Static Public Member Functions

static proto float GetAimHeightOfNextProjectile (float distance, out float time, BaseMuzzleComponent muzzleComp)
 Returns aim height and time for next projectile shot with the muzzle at given distance.
 
static proto float GetHeightFromProjectile (float distance, out float time, IEntity projectile, float initSpeedCoef=1.0)
 Returns aim height and time for given projectile at given distance.
 
static proto float GetHeightFromProjectileSource (float distance, out float fTimeResult, IEntitySource projectileSource, float initSpeedCoef=1.0)
 Returns aim height and time for given projectile source at given distance.
 
static proto float GetDistanceOfProjectile (float angle, out float time, IEntity projectile, float initSpeedCoef=1.0)
 Returns distance and time for given projectile shot at given angle.
 
static proto float GetDistanceOfProjectileSource (float angle, out float fTimeResult, IEntitySource projectileSource, float initSpeedCoef=1.0)
 Returns distance and time for given projectile source shot at given angle.
 

Member Function Documentation

◆ GetAimHeightOfNextProjectile()

static proto float BallisticTable.GetAimHeightOfNextProjectile ( float  distance,
out float  time,
BaseMuzzleComponent  muzzleComp 
)
static

Returns aim height and time for next projectile shot with the muzzle at given distance.

If the distance is further than the max bullet range, it returns negative time and aim height of the projectile max range.

◆ GetDistanceOfProjectile()

static proto float BallisticTable.GetDistanceOfProjectile ( float  angle,
out float  time,
IEntity  projectile,
float  initSpeedCoef = 1.0 
)
static

Returns distance and time for given projectile shot at given angle.

This should be used if the projectile is not shot with muzzle. For example for grenades. If the angle is not within the ballistic table range, it returns negative time and distance of the nearest angle projectile .

◆ GetDistanceOfProjectileSource()

static proto float BallisticTable.GetDistanceOfProjectileSource ( float  angle,
out float  fTimeResult,
IEntitySource  projectileSource,
float  initSpeedCoef = 1.0 
)
static

Returns distance and time for given projectile source shot at given angle.

This should be used if the projectile is not shot with muzzle. For example for grenades. If the angle is not within the ballistic table range, it returns negative time and distance of the nearest angle projectile .

◆ GetHeightFromProjectile()

static proto float BallisticTable.GetHeightFromProjectile ( float  distance,
out float  time,
IEntity  projectile,
float  initSpeedCoef = 1.0 
)
static

Returns aim height and time for given projectile at given distance.

This should be used if the projectile is not shot with muzzle. For example for grenades. If the distance is further than the max bullet range, it returns negative time and aim height of the projectile max range.

◆ GetHeightFromProjectileSource()

static proto float BallisticTable.GetHeightFromProjectileSource ( float  distance,
out float  fTimeResult,
IEntitySource  projectileSource,
float  initSpeedCoef = 1.0 
)
static

Returns aim height and time for given projectile source at given distance.

This should be used if the projectile is not shot with muzzle. For example for grenades. If the distance is further than the max bullet range, it returns negative time and aim height of the projectile max range.


The documentation for this interface was generated from the following file: