Under review

How to make the projectile get the shooter gameobject

赵西瓜 6 months ago in Shooter updated by Marti (Lead Developer) 6 months ago 4
  • I need to let the projectile to inherit shooters stat
Unity version:
Game Creator version:

im in the same boat right now trying to create a Mine with notify area. 

Under review

Depending on the type of projectile, this is done differently. Could you provide more details about your use-case?

for example

A character hit B character with a projectile.How to get the attributes of both sides when calculating damage

If your projectile is a game object, you'll need to store the "shooter" character in a local variable. However, if your "Bullet" is a raycast type (or sphere cast, or trajectory cast), you can already access the impacted character using the "Invoker" option.