Class MyCharacterSoundComponent
Inheritance
System.Object
MyCharacterSoundComponent
Assembly: Sandbox.Game.dll
Syntax
[MyComponentBuilder]
public class MyCharacterSoundComponent : MyCharacterComponent, IMyEntityComponentBase, IMyComponentBase
Constructors
MyCharacterSoundComponent()
Declaration
public MyCharacterSoundComponent()
Properties
ComponentTypeDebugString
Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
StandingOnGrid
Declaration
public MyCubeGrid StandingOnGrid { get; }
Property Value
StandingOnVoxel
Declaration
public MyVoxelBase StandingOnVoxel { get; }
Property Value
Methods
CharacterDied()
Declaration
public void CharacterDied()
OnAddedToContainer()
Declaration
public override void OnAddedToContainer()
Overrides
OnBeforeRemovedFromContainer()
Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
PlayActionSound(MySoundPair, Nullable<Boolean>)
Declaration
public void PlayActionSound(MySoundPair actionSound, Nullable<bool> force3D = null)
Parameters
Type |
Name |
Description |
MySoundPair |
actionSound |
|
System.Nullable<System.Boolean> |
force3D |
|
PlayDamageSound(Single)
Declaration
public void PlayDamageSound(float oldHealth)
Parameters
Type |
Name |
Description |
System.Single |
oldHealth |
|
PlayDeathSound(MyStringHash, Boolean)
Declaration
public void PlayDeathSound(MyStringHash damageType, bool stopPrevious = false)
Parameters
Type |
Name |
Description |
MyStringHash |
damageType |
|
System.Boolean |
stopPrevious |
|
PlayFallSound()
Declaration
public void PlayFallSound()
PlaySecondarySound(CharacterSoundsEnum, Boolean, Boolean, Nullable<Boolean>)
Declaration
public void PlaySecondarySound(CharacterSoundsEnum soundEnum, bool stopPrevious = false, bool force2D = false, Nullable<bool> force3D = null)
Parameters
Type |
Name |
Description |
CharacterSoundsEnum |
soundEnum |
|
System.Boolean |
stopPrevious |
|
System.Boolean |
force2D |
|
System.Nullable<System.Boolean> |
force3D |
|
Preload()
Declaration
StartSecondarySound(String, Boolean)
Declaration
public void StartSecondarySound(string cueName, bool sync = false)
Parameters
Type |
Name |
Description |
System.String |
cueName |
|
System.Boolean |
sync |
|
StartSecondarySound(MyCueId, Boolean)
Declaration
public void StartSecondarySound(MyCueId cueId, bool sync = false)
Parameters
Type |
Name |
Description |
VRage.Audio.MyCueId |
cueId |
|
System.Boolean |
sync |
|
StopSecondarySound(Boolean)
Declaration
public bool StopSecondarySound(bool forceStop = true)
Parameters
Type |
Name |
Description |
System.Boolean |
forceStop |
|
Returns
Type |
Description |
System.Boolean |
|
StopStateSound(Boolean)
Declaration
public bool StopStateSound(bool forceStop = true)
Parameters
Type |
Name |
Description |
System.Boolean |
forceStop |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateAfterSimulation()
Declaration
public override void UpdateAfterSimulation()
Overrides
UpdateAfterSimulation100()
Declaration
public void UpdateAfterSimulation100()
UpdateAfterSimulationParallel()
Declaration
public override void UpdateAfterSimulationParallel()
Overrides
UpdateWindSounds()
Declaration
public void UpdateWindSounds()
Extension Methods