Announcement

Collapse
No announcement yet.

Casting to NPC always fails

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Casting to NPC always fails

    Hey UE4 Community,

    Can anyone tell me why this casting always fails? The NPC is a character and usually casting using this method succeeds but it just doesn't want to successfully cast.
    Attached Files

    #2
    An NPC is not the player, and since your player is not a "Fractor_Soldier", then the cast will always fail.
    "I have harnessed the shadows that stride from world to world to sow death and madness."

    Comment


      #3
      Originally posted by EvilCleric View Post
      An NPC is not the player, and since your player is not a "Fractor_Soldier", then the cast will always fail.
      Then how do I reference it in my blueprint?

      Comment


        #4
        Originally posted by NerdRebellion View Post

        Then how do I reference it in my blueprint?
        Ah, never mind, apparently I already had a reference to the character that I completely forgot about. Thanks for the setting on the right track.

        P.S how do you close forums?

        Comment

        Working...
        X