Arma Reforger Script API
Loading...
Searching...
No Matches
ProjectileMoveComponent Interface Reference
Inheritance diagram for ProjectileMoveComponent:
BaseProjectileComponent GameComponent GrenadeMoveComponent MissileMoveComponent ShellMoveComponent FlareMoveComponent

Public Member Functions

proto external void EnableSimulation (IEntity owner)
 
proto external void Launch (vector direction, vector parentVelocity, float initSpeedCoef, IEntity projectileEntity, IEntity gunner, IEntity parentEntity, IEntity lockedTarget, IEntity weaponComponent)
 
proto external vector GetVelocity ()
 
proto external float GetRewindDuration ()
 Queries the rewind duration (equal to the RTT of the remote shooter's connection at the time of the shot) from the projectile for lag compensation.
 
proto external void SetRewindDuration (float duration)
 Sets the rewind duration (equal to the RTT of the remote shooter's connection) of the projectile for lag compensation.
 
proto external float GetBulletSpeedCoef ()
 Gets the bullet speed coef of this bullet.
 
proto external void SetBulletCoef (float coef)
 Sets the bullet speed coef of this bullet.
 
- Public Member Functions inherited from BaseProjectileComponent
proto external Instigator GetInstigator ()
 
proto external void SetInstigator (notnull Instigator instigator)
 
proto external IEntity GetParentProjectile ()
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Member Function Documentation

◆ EnableSimulation()

proto external void ProjectileMoveComponent.EnableSimulation ( IEntity owner)

◆ GetBulletSpeedCoef()

proto external float ProjectileMoveComponent.GetBulletSpeedCoef ( )

Gets the bullet speed coef of this bullet.

Init speed gets created with muzzle bullet speed coef and this bullet speed coef. (Used for i.e. mortar charge rings)

Returns
Bullet speed coef.
Warning
Value does not return total speed coef but just the value set on the bullet. For total: multiply bullet speed coef from muzzle with this value.

◆ GetRewindDuration()

proto external float ProjectileMoveComponent.GetRewindDuration ( )

Queries the rewind duration (equal to the RTT of the remote shooter's connection at the time of the shot) from the projectile for lag compensation.

Warning
This has to be performed on authority, and before a shell is launched or on non-network shots, the return value will be zero.
Returns
The current rewind duration in seconds.

◆ GetVelocity()

proto external vector ProjectileMoveComponent.GetVelocity ( )

◆ Launch()

proto external void ProjectileMoveComponent.Launch ( vector direction,
vector parentVelocity,
float initSpeedCoef,
IEntity projectileEntity,
IEntity gunner,
IEntity parentEntity,
IEntity lockedTarget,
IEntity weaponComponent )

◆ SetBulletCoef()

proto external void ProjectileMoveComponent.SetBulletCoef ( float coef)

Sets the bullet speed coef of this bullet.

Init speed gets created with muzzle bullet speed coef and this bullet speed coef. (Used for i.e. mortar charge rings)

Parameters
coefNew bullet speed coef
Warning
Value does not set total speed coef but just the value set on the bullet. For total: multiply bullet speed coef from muzzle with this value.

◆ SetRewindDuration()

proto external void ProjectileMoveComponent.SetRewindDuration ( float duration)

Sets the rewind duration (equal to the RTT of the remote shooter's connection) of the projectile for lag compensation.

Parameters
durationThe new rewind duration in milliseconds.
Warning
This has to be performed on authority, and must be done after the shell is launched.

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