Download

Issue casting to a NPC blueprint

I have a NPC blueprint but i cannot seem to cast to it
If i use get player character it comes back cast failed
Anything else i try comes up with warning or error.
It has a parent class of Character

Your problem is hidden in your question :slight_smile:

NPC = non player character, if you did this:

NPC.JPG

it’s always going to fail unless you are actually controlling the NPC with the player controller. This call always give you the character you’re currently controlling.

If you want references to NPCs, try:

getactor.JPG