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"

I how can I switch from level Static Camera to Third Person Camera when I'm Aiming

Hi, I'm doing a Game like Fatal Frame, Silent Hill and Resident Evil. I was wondering, how exactly I can switch from level Static Camera to Third Person perspective when I'm aiming and going back to the last Static Camera I was at before aiming.

Ps: my Static Camera are in the Level BluePrint and the Camera I want to switch to is the FollowCamera in my ThirdPersonCharacter.

Thanks guys

Product Version: UE 4.19
Tags:
more ▼

asked Jul 20 '18 at 02:57 AM in Blueprint Scripting

avatar image

yo1234
1 1 1

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

1 answer: sort voted first

Just get the PlayerController and use Set View Target With Blend to set your new camera (with the new view target being your character; the function picks up the camera within your character automatically). It may be a good idea to save your static camera value as a variable, so you can switch back to it when going out of third person view.

alt text

This setup in the Level blueprint uses an input function called SwitchCam to switch between the current active static camera and the camera within the player character. By changing the "static cam" variable, you can easily change from which and to which static cam the player needs to transition. Blend Time can be anything you want; I used 1 second, but you can make it instant or whatever.

switchcamera.jpg (329.3 kB)
more ▼

answered Jul 20 '18 at 09:09 AM

avatar image

cridia
808 27 24 99

avatar image yo1234 Jul 20 '18 at 09:18 PM

Thank you for your Reply.

The Switching work ,but it comes with 2 other problems.

First of all, I restructured my camera system.

Instead of having all of them in my Level BluePrint I created a separate Blueprint receiving a Camera Reference from the Editor and setting a public variable "Last Cam" to the received reference , so it keeps track of where I am in the level. alt text Doing What you told me in the level Blueprint works, however when I switch the cam it will always bring me back to the camera where the level start (Cam_room101) alt text I was thinking to get the public Variable from my BP_StaticCamera Blueprint (Last Cam) instead of getting the variable from the level Blueprint (Last Cam Ref) like this: alt text But I got no Idea of where I should plug that Target node to.

And the Second Problem is When I press The Aim Button, I only got the Camera changing, it seems to bypass the actual animation putting my Character in the Aiming stance. This Aim Event is already used in my ThirdPersonCharacter_BP: alt text

Thanks for your help by the way

screenshotcam1.png (95.7 kB)
screenshotcam2.png (203.0 kB)
screenshotcam3.png (200.1 kB)
screenshotcam4.png (217.2 kB)
avatar image yo1234 Jul 21 '18 at 05:56 AM

I Finally Resolved all of The Issue Thank you for the tips

(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