Class MyExplosionInfo
Inheritance
System.Object
MyExplosionInfo
Assembly: Sandbox.Game.dll
Syntax
public sealed class MyExplosionInfo : ValueType
Constructors
MyExplosionInfo(Single, Single, BoundingSphereD, MyExplosionTypeEnum, Boolean, Boolean, Boolean)
Declaration
public MyExplosionInfo(float playerDamage, float damage, BoundingSphereD explosionSphere, MyExplosionTypeEnum type, bool playSound, bool checkIntersection = true, bool shouldDetonateAmmo = true)
Parameters
| Type |
Name |
Description |
| System.Single |
playerDamage |
|
| System.Single |
damage |
|
| BoundingSphereD |
explosionSphere |
|
| MyExplosionTypeEnum |
type |
|
| System.Boolean |
playSound |
|
| System.Boolean |
checkIntersection |
|
| System.Boolean |
shouldDetonateAmmo |
|
Fields
CheckIntersections
Declaration
public bool CheckIntersections
Field Value
| Type |
Description |
| System.Boolean |
|
CustomEffect
Declaration
public string CustomEffect
Field Value
| Type |
Description |
| System.String |
|
CustomSound
Declaration
public MySoundPair CustomSound
Field Value
Damage
Declaration
Field Value
| Type |
Description |
| System.Single |
|
Direction
Declaration
public Nullable<Vector3> Direction
Field Value
| Type |
Description |
| System.Nullable<Vector3> |
|
DirectionNormal
Declaration
public Nullable<Vector3> DirectionNormal
Field Value
| Type |
Description |
| System.Nullable<Vector3> |
|
EffectHitAngle
Declaration
public MyObjectBuilder_MaterialPropertiesDefinition.EffectHitAngle EffectHitAngle
Field Value
ExcludedEntity
Declaration
public MyEntity ExcludedEntity
Field Value
ExplosionFlags
Declaration
public MyExplosionFlags ExplosionFlags
Field Value
ExplosionSphere
Declaration
public BoundingSphereD ExplosionSphere
Field Value
ExplosionType
Declaration
public MyExplosionTypeEnum ExplosionType
Field Value
HitEntity
Declaration
public MyEntity HitEntity
Field Value
IgnoreFriendlyFireSetting
Declaration
public bool IgnoreFriendlyFireSetting
Field Value
| Type |
Description |
| System.Boolean |
|
KeepAffectedBlocks
Declaration
public bool KeepAffectedBlocks
Field Value
| Type |
Description |
| System.Boolean |
|
LifespanMiliseconds
Declaration
public int LifespanMiliseconds
Field Value
| Type |
Description |
| System.Int32 |
|
ObjectsRemoveDelayInMiliseconds
Declaration
public int ObjectsRemoveDelayInMiliseconds
Field Value
| Type |
Description |
| System.Int32 |
|
OriginEntity
Declaration
Field Value
| Type |
Description |
| System.Int64 |
|
OwnerEntity
Declaration
public MyEntity OwnerEntity
Field Value
ParticleScale
Declaration
public float ParticleScale
Field Value
| Type |
Description |
| System.Single |
|
PlayerDamage
Declaration
public float PlayerDamage
Field Value
| Type |
Description |
| System.Single |
|
PlaySound
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
ShouldDetonateAmmo
Declaration
public bool ShouldDetonateAmmo
Field Value
| Type |
Description |
| System.Boolean |
|
StrengthImpulse
Declaration
public float StrengthImpulse
Field Value
| Type |
Description |
| System.Single |
|
Velocity
Declaration
Field Value
VoxelCutoutScale
Declaration
public float VoxelCutoutScale
Field Value
| Type |
Description |
| System.Single |
|
VoxelExplosionCenter
Declaration
public Vector3D VoxelExplosionCenter
Field Value
Properties
AffectVoxels
Declaration
public bool AffectVoxels { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ApplyForceAndDamage
Declaration
public bool ApplyForceAndDamage { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
CreateDebris
Declaration
public bool CreateDebris { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
CreateDecals
Declaration
public bool CreateDecals { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
CreateParticleDebris
Declaration
public bool CreateParticleDebris { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
CreateParticleEffect
Declaration
public bool CreateParticleEffect { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
CreateShrapnels
Declaration
public bool CreateShrapnels { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ForceDebris
Declaration
public bool ForceDebris { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
GetCueByExplosionType()
Declaration
public MySoundPair GetCueByExplosionType()
Returns
GetExplosionEffect()
Declaration
public string GetExplosionEffect()
Returns
| Type |
Description |
| System.String |
|