I’m looking for a script that will handle the explosion of a barrel on contact. My script is working to a point. The audio of a flame VFX and fireball play on contact, but the visual animation is absent.
My suspicion is that the barrel is being destroyed before any of the animations can play…
If it’s destroyed effects will go with it I guess (not sure about the imp/fnf types which these are). ApplyEffectAtLocation(similar stuff) with the location being GetLocation(oSelf) is probably worth a shot.
I should mention - I’ve only been testing attacking using a bow and arrow. Upon arrow impact all of the sounds fire, just not the animations as previously stated.
Just thought I’d update just in case the attack type was relevant to the success or failure of the code.
Or more accurately the weapon type -