This one is BP_Hatchet Master
This is the rest of BP_Hatchet master
This is BP_DestructableMaster
I want it to make the sound and the visual FX evertime it is hit with the tool, not just the once before it destroys.
This one is BP_Hatchet Master
This is the rest of BP_Hatchet master
This is BP_DestructableMaster
I want it to make the sound and the visual FX evertime it is hit with the tool, not just the once before it destroys.
Hey @Montypyphon!
So firstly, in your hatchet code, youâre using âGet Actor of Classâ which will scan the world and return the first one it finds. It will not always be the one youâre looking for- so maybe switch that out for a âCast To âTreeââ with the overlapped object as the input. Once youâve done that, can you explain where in the code itâs determined that the tree is finished being cut? Because really youâd just need to move the sound play to be before that point, but after the confirmation that it implements the interface.
Hope that helps, let us know!
I have now moved it all to BP_hatchetMaster and dont have to cross reference, as i have set the default sounds in the variables TreeHitFX and TreeSound it now plays the same sound if it hit a rock as it does the tree? any way i can fix this? i would like it so it plays the wood sound for trees and rock sound for rocks thanks
I fixed this! i used an interface and used the branch to check if the tree implemented that interface!