Download

SpawnActor with 'instigator' functionality?

I’m trying to figure out what the ‘instigator’ option means and when you’d want to use it? It doesn’t seem to be documented very well…

Thanks!

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.

Ah, that is indeed pretty handy. Thanks a bunch!