Show / Hide Table of Contents

Class MyExplosionInfo

Inheritance
System.Object
MyExplosionInfo
Namespace: Sandbox.Game
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
Type Description
MySoundPair

Damage

Declaration
public float Damage
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
Type Description
MyObjectBuilder_MaterialPropertiesDefinition.EffectHitAngle

ExcludedEntity

Declaration
public MyEntity ExcludedEntity
Field Value
Type Description
MyEntity

ExplosionFlags

Declaration
public MyExplosionFlags ExplosionFlags
Field Value
Type Description
MyExplosionFlags

ExplosionSphere

Declaration
public BoundingSphereD ExplosionSphere
Field Value
Type Description
BoundingSphereD

ExplosionType

Declaration
public MyExplosionTypeEnum ExplosionType
Field Value
Type Description
MyExplosionTypeEnum

HitEntity

Declaration
public MyEntity HitEntity
Field Value
Type Description
MyEntity

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
public long OriginEntity
Field Value
Type Description
System.Int64

OwnerEntity

Declaration
public MyEntity OwnerEntity
Field Value
Type Description
MyEntity

ParticleScale

Declaration
public float ParticleScale
Field Value
Type Description
System.Single

PlayerDamage

Declaration
public float PlayerDamage
Field Value
Type Description
System.Single

PlaySound

Declaration
public bool PlaySound
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
public Vector3 Velocity
Field Value
Type Description
Vector3

VoxelCutoutScale

Declaration
public float VoxelCutoutScale
Field Value
Type Description
System.Single

VoxelExplosionCenter

Declaration
public Vector3D VoxelExplosionCenter
Field Value
Type Description
Vector3D

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
Type Description
MySoundPair

GetExplosionEffect()

Declaration
public string GetExplosionEffect()
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾