TargetHoming
< Modding | Projectile (modding) | Projectile ComponentsModding/Projectile/Components/TargetHoming
Jump to navigation
Jump to search
Components
Causes the attached bullet to rotate towards its target.
This component makes the projectile turn in the direction of a target if one exists and the delay has expired. This happens a little every frame.
Used by missiles, maybe mines...
Warning
If there are multiple components of this type in a projectile, only one will work, apparently the last in the code.
Parameters
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
TurnVelocity | angle | Yes | Yes | - | E.g. 240d The specified angle is meant per second.
|
ModifiesLinearVelocity | bool | No | No | No | |
Delay | time
meaning : float |
No | Yes | - | Time in seconds before the component does anything. E.g. 0.1
|
AvoidanceRaycastDistance | float | No | No | - | How far ahead the projectile looks for things to avoid (like : your own ship). |
TargetLeadPrediction | bool | No | No | No | Does the projectile try to anticipate the enemy's future location |
VelocityCompensation | float | No | No | - | If the projectile is going the wrong way, how much it slows down to fix that.
Used by missiles. |
AvoidsEnemies | bool | No | No | No | |
AvoidsFriendlies | bool | No | No | Yes (luckily) | |
AvoidsJunk | bool | No | No | No | |
AvoidsStructural | bool | No | No | No | |
AvoidsOperational | bool | No | No | Yes (weird) |