Best way to make Projectiles scale with dino damage?

my dino has a projectile thats doing more damage based on if it hits a golem, i would like to make this damage based on the dino melee damage by multiplying it with the ini value, is there any easy way to do this ?