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"

If there is a get control rotation, why isn't there a get control location?

I have get control rotation, but there is no node called get control location.

what do i use for get control location?

i'm trying to get my players mesh to move properly in my FPS.

Product Version: Not Selected
Tags:
more ▼

asked Apr 12 '14 at 08:53 PM in Blueprint Scripting

avatar image

alx0427
173 38 45 61

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

2 answers: sort voted first
 GetController()->GetActorLocation()

Should work.

more ▼

answered Apr 12 '14 at 09:01 PM

avatar image

BiggestSmile
1.6k 54 38 105

avatar image alx0427 Apr 12 '14 at 09:11 PM

well i dont know anything about C++. where do i put that or how do i do that in bleprint?

avatar image BiggestSmile Apr 12 '14 at 09:33 PM

Oh sorry didn't notice it was in blueprints section, thought it was C++.

alt text

Drag blue pin from Get Controller and probably disable Context Sensitive to get that node.

avatar image alx0427 Apr 12 '14 at 10:27 PM

So im having a bit of a problem. when i move my camera up and down, my mesh only rotates and does not move relative to the way the camera is pointing. any ideas?

avatar image BiggestSmile Apr 13 '14 at 06:41 AM

Too little information..

But try setting Orient Rotation TO Movement in character movement component.

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

You don't really ever want to get the controller location, it doesn't really mean anything. The PlayerController is the players 'will in the world;, a rather abstract concept. It does have a rotation, because this makes it easy to build things like FPS games where you want the camera to look up and down, but the pawn not.

What problem are you trying to solve?

more ▼

answered Apr 13 '14 at 08:13 AM

avatar image

JamesG STAFF
1.3k 8 8 32

avatar image alx0427 Apr 13 '14 at 06:08 PM

When i look up and down, my players mesh only rotates. it does not actually change location up and down relative to where my camera is pointing.

(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