My rocket launcher has particle effect which releases rocket particles. how can I do something everything a particle is emitted? My goal is to reduce the ammo count each time a particle is released.
There is no exposed callback for particle Birth.
I know that particles have collision and trigger callbacks, but I’m not able to access the collided object’s name or tag through trigger, so the ammo will increment when hitting ANY trigger in the environment, which is bad. Through a collision check I can retrieve the collided GO, but I’m already using collisions to destroy my rocket.
any advice?