814 {
815 string soundsetName = "";
818 {
819
820 string damageZone;
821 DamageSystem.GetDamageZoneFromComponentName(parent,
GetPartName(), damageZone);
822
823 bool isDestruction;
824 if (
g_Game.IsMultiplayer())
826 else
827 isDestruction = parent.GetHealth(damageZone, "Health") <= 0;
828
829 if (!isDestruction)
830 {
831
833 }
834 else
835 {
836
838 }
839 }
840 else
841 {
842
844 }
845
846 if (soundsetName != "")
848 }
ConstructionPartTypeData m_PartTypeData
string GetSoundsetBuild()
string GetSoundsetDismantle()
string GetSoundsetDestroy()
static EffectSound PlaySoundEnviroment(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound, updating environment variables.
Manager class for managing Effect (EffectParticle, EffectSound)