Class EmbeddableProjectileComponent
Embeds this entity inside of the hit target.
Inheritance
System.Object
EmbeddableProjectileComponent
Namespace: Content.Shared.Projectiles
Assembly: Content.Shared.dll
Syntax
public sealed class EmbeddableProjectileComponent : Component
Fields
| Improve this Doc View SourceDeleteOnRemove
Delete the entity on embedded removal? Does nothing if there's no RemovalTime.
Declaration
public bool DeleteOnRemove
Field Value
Type | Description |
---|---|
System.Boolean |
EmbedOnThrow
Whether this entity will embed when thrown, or only when shot as a projectile.
Declaration
public bool EmbedOnThrow
Field Value
Type | Description |
---|---|
System.Boolean |
MinimumSpeed
Minimum speed of the projectile to embed.
Declaration
public float MinimumSpeed
Field Value
Type | Description |
---|---|
System.Single |
Offset
How far into the entity should we offset (0 is wherever we collided).
Declaration
public Vector2 Offset
Field Value
Type | Description |
---|---|
Vector2 |
RemovalTime
How long it takes to remove the embedded object.
Declaration
public float? RemovalTime
Field Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Sound
Sound to play after embedding into a hit target.
Declaration
public SoundSpecifier Sound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |