Instigator

查看代码的时候发现Actor中有一个Instigator,不知道Instigator是作什么用的,请问Actor中Instigator的作用是啥,应该怎么用?

我的理解是用来记录是哪个actor生成的你自定义的actor的
以下是另一个论坛的原答案:
if you spawn a projectile and pass over instigator as say, your pawn.
then when the projectile wants to do damage, you can pass it over to the damage function.
So you know who fire the projectile, you can then decide if you want friendly fire, and all sorts of things can be done after you know this bit of info.

Thank you!