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"

Where is playercontroller location exactly?

On actor location or camera location

Product Version: UE 4.17
Tags:
more ▼

asked Sep 17 '17 at 07:35 PM in Blueprint Scripting

avatar image

Master Gebjeter
138 5 8 15

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

2 answers: sort voted first

I don't really think that it has the location :) well you can try to get player controller > get location> print string it :D Better tell me why are you asking this, and i will try to help you :)

more ▼

answered Sep 17 '17 at 07:42 PM

avatar image

HeXtion
44 2 5 10

avatar image Master Gebjeter Sep 17 '17 at 08:05 PM

I am working on a strategy game and i want to set viewdistancescale and other stuff with the location of my player and not with my playercameraalt text

pic3.png (20.2 kB)
pic4.png (365.6 kB)
pic5.png (9.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I double checked ad GetActorLocation is not overridden, so it will try to return location of root component of PlayerController. By looking on code, if bAttachToPawn is true (which in blueprint should be "Attach To Pawn" if it's exposed) Controller (not just playercontroller all controllers) root component will attached it self to possessed pawn root component, so it will return possessed pawn root component location, so in other word standard actor location. Here is the code:

https://github.com/EpicGames/UnrealEngine/blob/1d2c1e48bf49836a4fee1465be87ab3f27d5ae3a/Engine/Source/Runtime/Engine/Private/Controller.cpp#L168

more ▼

answered Sep 18 '17 at 01:53 AM

avatar image

Shadowriver
37.2k 936 172 1116

(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