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"

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. 

How to change player's camera FOV?

Hi. I would like to be able to change player's camera FOV in first person during gameplay using BP either by pressing a key or entering a volume. I can't find a way to set FirstPersonCamera FOV. Any ideas?

Product Version: Not Selected
Tags:
more ▼

asked May 15 '14 at 04:54 PM in Blueprint Scripting

avatar image

luis.hernandez
106 6 12 32

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

1 answer: sort voted first

Hey Luis.hernadez,

You have two options!

Option 1, you hit ` on the top left of your Keyboard in-game. That will bring up the console, and then you can type fov [number], in my example I type fov 100. You can also do exact thing in Blueprint using the Execute Console Command Node.

OR

Option 2, you find the camera within the Player Character Class. Drag it into the Event Graph, pick from it and Type Set Field Of View. You'll get a node allowing you to change the cameras FOV. I assign the change to activate when I press the Letter E.

I hope this helps.

alt text

Peace

changefov.png (132.2 kB)
more ▼

answered May 15 '14 at 05:45 PM

avatar image

PeterLNewton
2.1k 75 36 110

avatar image luis.hernandez May 15 '14 at 06:20 PM

Yes! You 've been of great help. In fact the second method is what I was asking for. My next step is to change the FOV depending on the size of the room that the player is getting in. I plan to make a volume that triggers the FOV change when the player enters, based in a value stored in the volume itself. I am not sure how to pass the value of the FOV from a variable containing it in the volume actor to the Player Character Class, but this is another story. Anyway, any help in that direction would be very welcomed.

Thank you very much again!!

avatar image Brito Jun 06 '14 at 07:58 AM

Thank you very much!

avatar image tuneful Jun 26 '14 at 09:06 AM

hi there, i cant set the field of view node, can anyone help? ^^

thanks

avatar image luc2 Jun 29 '15 at 09:57 PM

hello, i'm a noob, where can i find that "Player Character Class" ? where do i have to click ?

avatar image Overwatch04 Aug 14 '15 at 02:32 PM

If you are using First Person and in the my character BP then just get First person camera and drag off of that and "Set Field of View" But if you are in another blueprint then right click and "cast to FirstPersonCharacter", drag off the object and "Get Player Character", then drag off of "As First Person Character" and Type "get first person camera"

(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