for a mod im making, i want a breakgroup to trigger a custom soundfile located in the mod-zip. how would i aproach this without using lua sorcery? ive searched for examples and found this in the piano's jbeam: Code: {"deformGroup":"piano1","deformMaterialBase":"piano", "deformMaterialDamaged":"piano"}, ["piano_top", ["piano_top"], {"deformSound":"PianoSmash1", "deformVolume":6}], and this: Code: //{"soundFile":"art/sound/-.ogg","volumeFactor":5,"decayMode":0,"decayFactor":2,"pitchFactor":0,"maxStress":100} but i think this uses beamstress instead of a breakgroup. idk. can someone explain this a little? like: 1. where to place it correctly in the jbeam file. 2. how to setup the filepath if the ogg is locatet within a specific mod-zip file in the mods folder. 3. basically a brief explanation of each function. thanks.
the most simple way of achieving what i want would be a "deformsound" i guess. but it didnt work with using the datapath. Code: {"deformGroup":"example", "deformMaterialBase":"examplematerial", "deformMaterialDamaged":"examplematerial_dmg"} ["examplemesh", ["examplegroup"],[]{"deformSound":"vehicles/examplemod/art/sound/examplesound.ogg", "deformVolume":1.0}], {"deformGroup":""} if i replace "vehicles/examplemod/art/sound/examplesound.ogg" with "glassbreaksound1" or "pianosmash1" it works just fine. "glassbreaksound1" and "Pianosmash1" are SFXprofiles i guess. so i made one: Code: singleton SFXProfile(example01) { filename = "vehicles/examplemod/art/sound/examplesound.ogg"; }; but where would i put it to work with my mod? would i have to create a datablock or would only a cs. file do?