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"

[Closed] Changing camera to blueprint camera in multiplayer calls only client1

I'm trying to call an event when the player overlaps the collision to switch the camera to the blueprint of a specific player on the multiplayer server but the event is calling only for the client1 which is player index = 0, Get player controller index = 0 independent of which client being 2,3,4 ... overlaps the collision only the client 1 responds

Any solution?

alt text

Product Version: UE 4.21
Tags:
index.jpg (136.5 kB)
more ▼

asked Dec 06 '18 at 01:25 AM in Using UE4

avatar image

TheSubZer0
119 7 7 12

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

The question has been closed Mar 08 '19 at 11:30 PM by TheSubZer0 for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

If you want to change camera of actor that overlap, instead of concentrating to get index, you can get controller from "Other actor" pin, cast it to at least pawn, then get a controller and then set view target.

If you wanto to change all controllers,... you need ot get all controllers first, either with Get All Actors of Class, or more efficient way by monitoring who leaves and joins the game and keep there controllers in array. Then just do For Each

more ▼

answered Dec 06 '18 at 05:40 AM

avatar image

Shadowriver
34.6k 917 164 1095

avatar image TheSubZer0 Dec 06 '18 at 01:20 PM
(comments are locked)
10|2000 characters needed characters left

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question