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"

Set Camera Target

So i made a function that sets camera offsets x,y,z and sets the camera location and rotation, but how do i make my character be the target of the function? The Camera is not apart of the character blueprint.

Function: alt text

And i want to connect this function to have the player as target, so the camera follows him

This is the camera function that sets offsets etc.

Product Version: UE 4.14
Tags:
more ▼

asked Jan 11 '17 at 12:56 PM in Blueprint Scripting

avatar image

GlennSurland
6 2 3 5

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

2 answers: sort voted first

You can just use GetPlayerCharacter to access the currently controlled character from anywhere.

more ▼

answered Jan 11 '17 at 04:34 PM

avatar image

JeromeParent
1.2k 63 33 96

avatar image GlennSurland Jan 11 '17 at 06:23 PM

The player and camera are seperate, and i can already move the player around, but it gets messed up when i move the camera

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

I was searching for something else but this is EXACLY what you search for :D YOUTUBE LINK

more ▼

answered May 01 '17 at 05:28 PM

avatar image

DamianToczek
26 9 12 12

(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