How to make the projectile stun?

Hello everyone! There is this action where you Create a projectile and you shoot that either deals damage or heal but how can i make it also stun the enemy if the enemy got hit by that projectile?

have a damaged dealt rule that checks if event ability is equal to null and then stun the victim;

the only thing is that some hero abilities aren’t being tracked correctly (like solider helix rocket) so it may not be 100% reliable depending on the hero

like clewster22 says, not much else you can do tbh… however i would like to add you can improve reliability by also checking for the amount of damage being dealt compared to the projectiles damage as long as its not an AEO (strong falloff damage area), but if you do then you will also have to keep in mind and account for damage modifiers both those increasing damage for the user as well as decreasing damage taken for the victim… things like mercy damage boost, nano boost (both giving and taking damage)… orisa fortify, doomfist power block, etc…

it would be more reliable, just also way more effort. but i still wanna make sure you know about it so you can choose the better yet more annoying method if you want to.

also something i personality like to do, to make it more reliable without much effort is have the projectile deal a set (very small) amount of damage, and then check for an amount around that much (so like accounting for double damage and half damage or something) then apply both the custom effects as well as the missing damage using scripts.