Casting from AI controller to Spawner

Hey, that’s awesome! Great analogy with the ear tag, but not only does it state who owns it but where it would belong (spawner territoryRadius ref).

So to get those values you would need to use the Get Controlled Pawn node as you were, and then cast to “BP_Animal”. This is why inheritance is useful! Because if you have all of those things you did as part of “BP_Animal” (instead of on every animal individually), you could cast to animal and know that all of those things are going to be retrievable.

This would make the AI controller reusable on every child of “BP_Animal” :slight_smile: