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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Advanced Flashlight

So I've seen this in games like Slender: the arrival, Resident Evil 7 demo and PT. The flashlight does not follow the camera perfectly. It's almost delayed a bit and is much smoother. Is there a way for me to do this with UE 4.11? If so, how?

Product Version: UE 4.11
more ▼

asked Jul 11 '16 at 04:10 PM in Blueprint Scripting

avatar image

1 1 2 4

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

1 answer: sort voted first

This is a pretty simple thing to implement into your project.

In your player character blueprint you want to add a spring arm component and bind your camera to it as such: https://gyazo.com/717e35e03e66cd133f728a5d2377ea1e

Then select the spring arm, my settings : https://gyazo.com/f2b28d089b54fcd443a342c8ae45b9f7

What you want to focus on : https://gyazo.com/df2351290ee3e4f92805a8d3a61fcb1c

Enable a camera rotation lag with a set speed.

This will have your camera lag behind your flashlight.

You will want to have a spring arm for your flashlight as well :https://gyazo.com/ff9b2debd81b93cd09c63c4c0141f122

without any lag settings : https://gyazo.com/372795b011ba5259a1d20df4cf7154b6

Provides a more realistic approach to a flashlight so you point the flashlight in the direction you want to look and the camera follows!

more ▼

answered Jul 11 '16 at 09:36 PM

avatar image

161 7 5 6

avatar image ENP Jul 11 '16 at 10:19 PM
avatar image Enraged91 Mar 21 '18 at 11:04 PM

Yikes! So I know this is about a year later but, is there a way to apply this to a TPS character holding a flashlight? Like maybe have his hand follow the camera view through IK?

avatar image four2nothin Mar 26 '18 at 03:29 PM

Hey Enraged91, coincidentally it's only been 4 days since you've asked. Have you found a resolution? I'm also looking for an answer

avatar image Enraged91 Mar 27 '18 at 03:09 AM

Nothing yet unfortunately :(

(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