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 set client camera to follow server?

Hi,

I'm trying to setup a client/server system where a larger group can follow along what someone is doing with a VR headset. So what I need to do is set the camera of the server to a different camera ( like top view ) and have that camera follow the camera of the player using the VR headset. I've been trying different approaches by using the "OnPostLogin" event in the gamemode and "Set view target with blend" like the screenshot below:

alt text

I've also tried doing this from the level blueprint using a custom event that replicates. I also looked through the forums and here and found some snippets, but so far no luck in solving this.

Can someone point me in the right direction to solve this?

Product Version: UE 4.10
Tags:
more ▼

asked Dec 04 '15 at 11:31 AM in Blueprint Scripting

avatar image

MrMastermindNL
156 11 20 30

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

1 answer: sort voted first

For anyone interested, I solved my problem. I started by adding an extra camera to my player character blueprint.

alt text

Then I check the client position on tick and use an RPC to trigger and send the location values to my server character, so I can control my server character/camera using a different view.

alt text

setcamera.jpg (67.0 kB)
setposition.jpg (123.8 kB)
more ▼

answered Dec 08 '15 at 03:07 PM

avatar image

MrMastermindNL
156 11 20 30

(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