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"

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

Focus camera onto computer screen in game

Hi folks,

So my question is, how can I focus the players camera in onto a computer screen to enable them to interact? (I have got ingame screen interaction working.)

An example of what I mean can be seen here, in SOMA. Example

Thanks in advance folks.

(I dont mind suggestions in either BluePrints or C++, however suggestions in blueprints might be userful for others looking on the forums. )

Product Version: UE 4.11
Tags:
more ▼

asked Jun 02 '16 at 05:06 PM in Blueprint Scripting

avatar image

WillApted
8 2 5

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

1 answer: sort voted first

For something like that you would first use a 3D Widget on your Computer (Widget Component) line it up and scale it to fit, while at it alse setup a Camera there pointing directly on the Widget. Linetrace towards your (Charcters) Camera forward Vector and check if its your Computer Terminal you hit. If it is Call "Set View target with Blend" to the Computers Camera. This will smoothly transition to the other Camera.

Next thing you need todo is to change your Controlls a bit. Basicly disabling your FPS movement mechanics and turn on mouse Movement mechanics to interact with your UI without moving around or shooting at it ;P this part is up to to you.

And last thing is is the same process but in reverse enable FPS movement "Set View target with Blend" back to your Character.

Edit: I roughed this out you will have to Set Game Mode to UI only and Show Mouse Cursor and various other little things. Just so you be aware of that but there are plannty of guides out there that Cover all that Stuff.

more ▼

answered Jun 02 '16 at 06:01 PM

avatar image

Nachtmahr
6.9k 143 26 172

avatar image WillApted Jun 02 '16 at 07:10 PM

Oh wow, I will try it out... there was me using a timeline etc... xD Thanks... I will get back once I have got it working (or not)

(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