Spectate Player System | Multiplayer - Unreal Engine Tutorial

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 78

  • @charzxd6515
    @charzxd6515 3 роки тому +20

    hey everyone, to make this work for online multiplayer, simply make the "player list" event in the level game state
    then make a reference in your character blueprint and promote it to a variable, then get the "player list" variable and connect it back to the length and get of the array!

    • @MattAspland
      @MattAspland  3 роки тому +7

      Yep, this is to allow it to work for the client too by the way. Currently it works for the server, this fix allows the client to work too.
      Spent a little while in the Discord discussing this haha

    • @aadityarajkarki7610
      @aadityarajkarki7610 Рік тому +3

      Working but in clients the camera movement is not replicating any solution?

    • @vrai_
      @vrai_ 2 місяці тому

      ​@@aadityarajkarki7610yes, because in UE player controller isnt replicate to client
      I also still looking for the other way

    • @almirqueiroga2374
      @almirqueiroga2374 Місяць тому

      No fix yet?

    • @vrai_
      @vrai_ Місяць тому

      The only thing that works for me is using replicated control rotation variable to control the client spectator pawn
      Just replicate that to other client and apply that variable to spectator pawn with same spring arm component properties

  • @MrDrewmooz
    @MrDrewmooz 10 місяців тому +4

    This is a good video... but the title is misleading. It doesn't work for the client(s) - needs to be done on GameState - and even then, this system doesn't work for clients because rotation doesn't work properly... this video only works for the server, which makes it pretty misleading... and honestly, a waste of time because it's not something you can use in multiplayer so after doing this video, you have to start over with a different system that works.

  • @OyunZinciri
    @OyunZinciri 3 роки тому +3

    How do I make the animal pee or shit in my game? Can you make a video about this please? Thanks, matt

  • @oxez-xd
    @oxez-xd 3 місяці тому +1

    how to make this multiplayer please ?

  • @보리타작-x9s
    @보리타작-x9s 2 роки тому +1

    I have Jitter Issue when excuting spectator nodes.. Any Advices?

  • @ZimCrusher
    @ZimCrusher 2 роки тому +1

    How would you change the view on the desktop, so another person can watch you play in VR, without having to look though the VR player's camera?
    So... let's say there are 3 security cameras (or even a HMD smooth follow camera), that a friend can watch on the Desktop Monitor, and switch through views. So you would change the Spectator view without changing the HMD view the VR player sees.

  • @lahiruwijesundara9650
    @lahiruwijesundara9650 2 роки тому +3

    Thanks for the tutorial. BTW this logic will only work for the Server player. If a client dies and tries to spectate this won't work since the client doesn't have direct access to the Game mode(PlayerList)

    • @imaginaryconception
      @imaginaryconception 10 місяців тому

      do you have a solution for this?

    • @Karlush
      @Karlush 4 місяці тому

      @@imaginaryconception yes, put it in the game state instead

  • @문석환-h5p
    @문석환-h5p 3 роки тому +2

    May I ask for a control rig tutorial? I want to use a control rig to make enemies look at me, but I don't know how

  • @t-93sleep
    @t-93sleep 3 роки тому +3

    Thank you for the tutorial!
    Was wondering if anyone was having an issue with the camera rotation once you start spectating?
    It doesn't seem to mimic the player you are spectating's camera rotation for me and I can't figure out a way to allow the "spectator" to rotate the camera freely either. Any help would be appreciated.
    I'd be happy with either solutions of the rotation mimicing the spectated player or the spectator being able to freely rotate around the spectated pawn.
    If I find a solution I'll post it back here.

    • @praaly6913
      @praaly6913 2 роки тому

      any solution?

    • @t-93sleep
      @t-93sleep 2 роки тому

      @@praaly6913 Sadly no in relation to how it was done in this video. Somewhat stitched together another way of spawning another spectator actor (but its probably not very performant/has problems, switched back to this way even with the rotational probelm) Moved onto different aspects of my project and haven't come back to the spectator camera even after two months.

    • @보리타작-x9s
      @보리타작-x9s 2 роки тому

      @@t-93sleep I would like to SceneCaptureComponent 2D

    • @louisedbrooke1189
      @louisedbrooke1189 Рік тому

      @@praaly6913 You can fix this by replicating which character is the view target. This can be achieved through a RepNotify or a Netmulticast function.

  • @Remence
    @Remence 3 роки тому +1

    I'm not sure if you're familiar with the Batman arkham games, but their freeflow combat is great and I was wondering if you could possibly make a short tutorial about how to replicate that sort of combat?

  • @nagesh5497
    @nagesh5497 Рік тому +1

    my camera is going inside the player mesh even though i tried to disable collision for camera and
    pawn

  • @emirisik
    @emirisik 2 роки тому +1

    Hey man, very useful video as always. Helped me a ton! How would you go about making the camera rotation work properly with ALS? Thanks!

  • @deadmeat.2105
    @deadmeat.2105 3 роки тому +1

    can you make tutorial how to make locomotion system walk run crouch prone and walk run crouch prone with weapons

  • @praaly6913
    @praaly6913 2 роки тому +3

    For those who have a problem with the rotation of the camera, I did differently than in the video, in the character I created a spectator camera when I want to spectate a person I deactivate its main camera and I activate spectatorCamera, I can then make my effects on it, however in both cases we get a strange effect of rotation on the camera, to see how fixed.

    • @dankpotato9578
      @dankpotato9578 2 роки тому

      Bruh did u fix it ?

    • @praaly6913
      @praaly6913 2 роки тому +1

      @@dankpotato9578 yeah, just create another camera "spectate camera" and when user die, just switch the camera i think i do that

    • @dankpotato9578
      @dankpotato9578 2 роки тому

      @@praaly6913 Okayyy

    • @dankpotato9578
      @dankpotato9578 2 роки тому

      @@praaly6913 Thank u

  • @applejetgg
    @applejetgg 3 роки тому +3

    Woah are you a mind reader? It actually help me

  • @splitfacemedia8519
    @splitfacemedia8519 3 роки тому +3

    Hey thanks man! I was just trying to figure out how to get this going. By the way, since following you I am now starting to become literate in ue4's blueprints. I hope I haven't jynxed my progress by shouting praise early on, but its taken years of poking around and such in between blender projects, I'm pretty good at blender and I can make some great quality shaders with nodes, yeah. But ue4 has been such a big challenge and it seems like you explain it the way I have needed things explained. Im very grateful to have found this channel.

    • @MattAspland
      @MattAspland  3 роки тому +1

      Hey, that's amazing to hear man. Super happy for you, and so happy I could help you.
      I wish you all the best for your future projects and progressions, keep up the great work!

    • @splitfacemedia8519
      @splitfacemedia8519 3 роки тому

      @@MattAspland same to you, keep it coming, im here to view it

    • @Bat8202
      @Bat8202 3 роки тому

      @@MattAspland How do I switch between the Multiplayer screens
      Thanks

  • @charan3278
    @charan3278 3 роки тому +1

    There is no idle animation when I downloaded pls help

  • @flamelord_bradj
    @flamelord_bradj 3 місяці тому

    Thanks worked a charm.

  • @farhan_86
    @farhan_86 3 роки тому +2

    Hindi me sikhao

    • @MattAspland
      @MattAspland  3 роки тому +2

      मुझे हिंदी नहीं आती, मुझे क्षमा करें

  • @driftprodzoni
    @driftprodzoni 3 роки тому +3

    Please make video how to make multiplayer game

  • @Faizy_Writes
    @Faizy_Writes 3 роки тому +1

    Wow 😲

  • @musicsssssssssssss1742
    @musicsssssssssssss1742 3 роки тому +1

    👍

  • @Fecatah
    @Fecatah Рік тому

    First, you could work in using Last Index instead of Length (avoid having to do math as much as possible in blueprints, also helps avoid off by 1 errors).
    Second, use ++ or -- to increment or decrement the Current Player by 1 in either direction (cleaner code that becomes easier to read and trace what's happening).
    Third, Thank you very much for this tutorial! I really appreciate your vids!

  • @thiagocancian
    @thiagocancian 2 роки тому

    Hi, are you available for contract work? I'm looking into something that's alike the system you made for my game that has split-screen multiplayer.

  • @poxh
    @poxh 8 місяців тому

    Hey i encountered that the pitch is not applied and also i have the problem that if my player walks the camera gets realy shaky

  • @danimusbar
    @danimusbar 2 роки тому

    How to make spectator like mobile legends championship, I mean as the audience or commentator not as player can see all player movement

  • @yuno3364
    @yuno3364 3 роки тому +1

    Ok so, I tried to flip this to multiplayer by just using the player list in gamestate, it works, but when the server spectates the client its supppppper erratic and shakey. if anyone runs across that lemme know im looking for a fix. ill reply here with it when i have it

    • @sketchyrealms85
      @sketchyrealms85 3 роки тому

      Did you fix this?

    • @yuno3364
      @yuno3364 3 роки тому

      @@sketchyrealms85 not yet!

    • @yuno3364
      @yuno3364 2 роки тому

      @@Koz64 yeah but i moved on to other projects, it was something to do with not replicating correctly

  • @realsufferingisnotknown4052
    @realsufferingisnotknown4052 2 роки тому

    is there a way to spectate another camera that is not active?? for example: if i got killed by somebody in a first person game, i want to spectate that player in a third person camera

  • @adam4designss
    @adam4designss Рік тому

    if i have a widget how it is show on both screen to control ,thank you it is helpful for me thank you

  • @b5a5m5
    @b5a5m5 Рік тому

    Check out the modulo operator for looping over array indexes. Prevents having to do conditionals like you demonstrated.

  • @syedkarnainkamal6336
    @syedkarnainkamal6336 3 роки тому

    can you make tutorial from start to end like covering very important topics?

  • @g-dojjo
    @g-dojjo 3 роки тому

    THANKS BRO!!! Im searching this too :D and you solve my problems always xD

  • @BUGMAKER-mu9fo
    @BUGMAKER-mu9fo 10 місяців тому

    is that work with aws in unreal engine

  • @imperitum3585
    @imperitum3585 Рік тому

    To make it work in multiplayer from client-side, just call "Set View Target..." function from server!

    • @francescogeloso79
      @francescogeloso79 11 місяців тому

      What should I do if everything is performed in an event with authority?

    • @imperitum3585
      @imperitum3585 11 місяців тому

      @@francescogeloso79 Nothing, it should work correctly

  • @stevenwynn819
    @stevenwynn819 3 роки тому +1

    This is a cool and unusual topic. Thanks, Matt!

    • @MattAspland
      @MattAspland  3 роки тому

      Thanks a lot Steve, happy to help! :)

  • @driftprodzoni
    @driftprodzoni 3 роки тому +1

    Nice tutorials

    • @MattAspland
      @MattAspland  3 роки тому

      Thanks :)

    • @syedkarnainkamal6336
      @syedkarnainkamal6336 3 роки тому

      @@MattAspland can you make tutorial from start to end like covering very important topics?

  • @esotericgamedev
    @esotericgamedev 2 роки тому

    legend cheers

  • @JSO1985ify
    @JSO1985ify 3 роки тому

    Thanks for the tutorials. Just love the format. If I could suggest a tutorial it would be dynamic split screen like in Divinity Original Sin. Where the camera shifts from both player on one screen when close to each other, and split screen when they are further apart. Keep up the good work!

    • @MattAspland
      @MattAspland  3 роки тому

      Thanks man, and great suggestion!

  • @ФедорСимонов-ф1ч
    @ФедорСимонов-ф1ч 3 роки тому

    love it

  • @aquamyaproduction
    @aquamyaproduction Рік тому

    The'client' player does not spectate, it only see itself, but it works fine on the "server" player.

  • @driftprodzoni
    @driftprodzoni 3 роки тому

    Hi

  • @Hypy-Cat
    @Hypy-Cat 3 роки тому

    Hi, Matt! Do you have a tutorial on how to make two platforms, and when you step on one of them it goes down a bit and the other goes up the exact same distance? And this has to happen with the first one when you step on the second.