|
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 Instigator | GetInstigator () |
|
proto external void | SetInstigator (notnull Instigator instigator) |
|
proto external IEntity | GetParentProjectile () |
|
bool | OnTicksOnRemoteProxy () |
|
◆ EnableSimulation()
proto external void ProjectileMoveComponent.EnableSimulation |
( |
IEntity |
owner | ) |
|
◆ 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 |
|
) |
| |
◆ 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
-
duration | The 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:
- Game/generated/Projectile/ProjectileMoveComponent.c