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"

Make a vigilance camera follow player

Hi there, i'm trying to come up with a blueprint script to make a vigilance camera follow my player character, but it's not being easy. Heres what i though so far:

  • I'm using an actor blueprint, where i attached a pawn sensing, and everytime it senses the player it rotates from the Z axes.

I used this script:

alt text

My problem is that my the camera is always rotating, instead of always following the player. Can anyone help me solve this problem?

Thanks in advance

Product Version: UE 4.19
blueprint.png (98.9 kB)
more ▼

asked Jul 05 '18 at 08:59 PM in Blueprint Scripting

avatar image

3 1 3

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

1 answer: sort voted first

Do you have any code that sets the camera back to the rotation where it looks like it's following the player, once the lookatenemy part is done? Maybe it's just that you didn't implement that yet. I don't see it doing that in the code you provided a screenshot of.

more ▼

answered Jul 05 '18 at 10:06 PM

avatar image

3.7k 18 19 20

avatar image Eyeore Jul 06 '18 at 08:16 AM

I did not do that, i will try it. Thanks

(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