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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Lock player Camera Rotation

Hey Unreal Community,

I have a Very simple blueprint thats controls the direction the player is looking at. It looks like this:

alt text

THe player is only in control over what direction he is looking at. I however wanna prevent the player from looking around for the first 20 seconds. To lock the I guess I am asking what is the best way to do this?

I hope you guys can help me out with this

Product Version: UE 4.11
playerlookat.jpg (86.8 kB)
more ▼

asked Oct 11 '16 at 02:23 AM in Blueprint Scripting

avatar image

3 2 3 4

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

2 answers: sort voted first

I would start by the node "On Begin Play" with a timer of 20 secs. After these 20 secs, a bool gets set on True. Additionally, just add a if before between Axis event and and the add Input

PS: Maybe you should add a sequencer or something after Event Begin Play, otherwise everything will be delayed 20 secs, and of course, CanLookAround has to be false at the beginning! alt text

axisinput.png (77.7 kB)
more ▼

answered Oct 11 '16 at 08:13 AM

avatar image

530 22 10 35

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

You can use a gate before the controller Yaw and Pitch, you can close it, and 20 sec later (use a timer) you can open it again.

more ▼

answered Oct 11 '16 at 10:06 AM

avatar image

Night Watcher
1.7k 43 12 71

(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