Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to move player character to target point in level blueprint

I know this is a pretty simple thing to do, but the engine is still pretty new and I can't find much documentation on using the blueprint scripting.
I'm trying to move the player character to a spawn point when the game begins, I have a target point at this location so I have a position to reference inside the level blueprint.

Product Version: Not Selected
more ▼

asked May 26 '14 at 12:24 PM in Blueprint Scripting

avatar image

3 5 14 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Event Begin Play > Set Actor Location and Rotation Get Player Character goes in the Target Make Vector(or whatever vector variable) goes into New Location

more ▼

answered May 26 '14 at 12:29 PM

avatar image

1.8k 131 68 110

avatar image Litruv May 26 '14 at 12:31 PM

I've tried a few variations of this and I get this error Error Accessed None 'CallFunc_GetPlayerCharacter_ReturnValue' from node Set Actor Location and Rotation in blueprint TemplateRoom2

avatar image Zeustiak May 26 '14 at 12:47 PM

Is this in your player controller or character BP?

The MyCharacter BP is set in my GameMode BP. My playercontroller(also set in GameMode) then gets the character and sets his location in the world. I think that is all I had to do.

avatar image Litruv May 26 '14 at 12:51 PM

I'm doing it in the level blueprint because I can't reference the spawn point elsewhere.

avatar image Zeustiak May 26 '14 at 12:55 PM

If you really have to, you can use an interface or Cast(not sure if you can Cast to a level) to get the variable out of your level to wherever you need it.

Basically though, if your character is not being found that is your real problem and you should focus on that. You may just need to try setting the location further along in the level blueprint in case you are calling it before it is spawned or something.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question