AlexM
New member
Hi there!
I was trying to get my custom damage processor working, and I noticed that the DamageOriginator in the DamageData was referencing the Projectile script on the bullet. This is fine for me, but I also need to get the gun the bullet was fired from. I can't seem to find any reference to the gun anywhere on the projectile, though.
Additionally, I have the damage processor attached to the character itself, rather than on the weapons. While this works fine for melee and hitscan shooter, it only works for projectile shooter after I add the same damage processor to the gun. This isn't much of a problem, but I thought was strange. Does this mean that the default processor is being added to the bullet on its spawn, which then cancels out my custom processor?
Thank you, and sorry if this question was already asked! I was looking around, but couldn't find anything that addressed this.
I was trying to get my custom damage processor working, and I noticed that the DamageOriginator in the DamageData was referencing the Projectile script on the bullet. This is fine for me, but I also need to get the gun the bullet was fired from. I can't seem to find any reference to the gun anywhere on the projectile, though.
Additionally, I have the damage processor attached to the character itself, rather than on the weapons. While this works fine for melee and hitscan shooter, it only works for projectile shooter after I add the same damage processor to the gun. This isn't much of a problem, but I thought was strange. Does this mean that the default processor is being added to the bullet on its spawn, which then cancels out my custom processor?
Thank you, and sorry if this question was already asked! I was looking around, but couldn't find anything that addressed this.