paulo.bender
Member
Greetings, fellow developers!
I would like to know if, when a hitspark is spawned normally by the engine, it stores it's parent or target, and what kind of script could be used to change the hitspark behaviour based in these local variables?
I'm interested in making hitsparks changing their animation based on the target that was hit (e.g.: metallic enemies spawning sparks when slashed, instead of blood spurs, or aliens spawning green blood instead of red blood).
I know that i could set custom pain animations for this, but this method doesn't spawn hitsparks where the attacks hit, and I would like to achieve this through alternative methods.
I would like to know if, when a hitspark is spawned normally by the engine, it stores it's parent or target, and what kind of script could be used to change the hitspark behaviour based in these local variables?
I'm interested in making hitsparks changing their animation based on the target that was hit (e.g.: metallic enemies spawning sparks when slashed, instead of blood spurs, or aliens spawning green blood instead of red blood).
I know that i could set custom pain animations for this, but this method doesn't spawn hitsparks where the attacks hit, and I would like to achieve this through alternative methods.