x

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"

get actor location is giving an error

Okay I am trying to get elevation for my character but it does not seem to work. The first picture works fine by having no errors pop up but I do not get the elevation printed on screen. When I have the character hooked in it gives me this error and I do not know what it means. (I wish there was a search for error when it pops up so that then I could see what it means like I am 5. alt text alt text

Product Version: UE 4.14
Tags:
elevation.png (350.4 kB)
error.png (39.1 kB)
more ▼

asked Mar 25 '17 at 07:31 PM in Blueprint Scripting

avatar image

RaZeXzZz
3 1 3 3

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first
  1. No need for the Buildstring. Just hook in the float direct to print..

  2. The accessed none error means that the actor you were trying to reference doesn't exist/invalid. Try making sure that the actor is actually in the game at the time the code is executed. You can also use the "isValid" node to make sure everything goes correctly and print an error if not.

more ▼

answered Mar 25 '17 at 07:39 PM

avatar image

vanlacke
1.5k 65 132 103

avatar image RaZeXzZz Mar 25 '17 at 10:08 PM

Okay so I got rid of the buildstring. I started with a blank template but then decided to add in the first person. I created a object reference variable of the player character to which I changed the name to john so I could find it easier. I placed down a player start and it spawns the character there. The game mode is set to the first person. Not sure if there is some other setting I need to find and change. Here is a picture of the class I made for the character. I made it by creating a variable and then typing in john to find the player and selected reference.

alt text

character.png (418.6 kB)
(comments are locked)
10|2000 characters needed characters left
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