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"

How to make my camera move to the specific location.

I have a game in FPP and i wanna do an interaction with a chair. I mean, if character be enough close to object and we press e.g. "E" then my camera move to the location above a chair to look like we are sitting on it. And when we press "E" again we back to the FPP movable character. And can you do the camera move smoothly to the "sitting vision" location?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 20 '19 at 04:14 PM in Blueprint Scripting

avatar image

Animo7865
3 1 1

avatar image Animo7865 Mar 26 '19 at 09:24 AM

Is there any easier way to do that? I chave something like 6 benches on my map, and i want to every of them to be able for sit.

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

2 answers: sort voted first

You'll want to use SetViewTargetwithBlend

Here's a resource about its usage:

more ▼

answered Mar 20 '19 at 05:44 PM

avatar image

BenVlodgi
2.2k 40 17 52

avatar image Animo7865 Mar 26 '19 at 09:24 AM

Is there any easier way to do that? I chave something like 6 benches on my map, and i want to every of them to be able for sit.

avatar image BenVlodgi Mar 26 '19 at 05:10 PM

You'll want to create a solution for your project, perhaps using a custom BP actor for your bench and a camera attached to that.

Then when you press E, in your player class, ray trace for the bench and run the code above.

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

For my project I use the 'Move Component To' node, your 'Scene Component' is the Component you attach to the 'Move Component To' node.

Hopefully this answer will help you.

more ▼

answered Mar 26 '19 at 03:57 PM

avatar image

Colder347
151 4 9 13

(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