Announcement

Collapse
No announcement yet.

Using Playerstart for my own Pawn

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

    Using Playerstart for my own Pawn

    Hi,
    As i am working on my Pinballgame, i wrote a pawn which does nothing but look into a static direction. That's all.
    But ofcourse, my Pawn starts at origin 0.

    My question is, how can i search for the player start(as used by other pawns) to read it's location and rotation?

    #2
    You can actually iterate over the scene nodes. A basic example of these iterators can be found in the UE4 wiki. Once you get the object, you could check the node-name for example, or if you have your own class simply check for that classtype.

    Comment


      #3
      Thank you very much, I'll look into this.

      Comment


        #4
        Have a look at AGameMode::FindPlayerStart(). There's a good chance this code is running for you by default and already trying to find a PlayerStart for you. Might be worth stepping through to see if it's failing for some reason.
        Senior Engine Programmer, UE4, Epic Games
        Twitter:
        @Byooler

        Comment

        Working...
        X