Announcement

Collapse
No announcement yet.

Little Question about blueprints related to Multiplayer subject

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Little Question about blueprints related to Multiplayer subject

    Greetings all,

    Im sorry if i post this in the wrong section.

    Im making a multiplayer game were you need to defend yourself for monsters. (idea based on UT2004 Invasion)
    I have already a wave system and weapon system as singleplayer and more.

    I already followed lot of toturails about making a multiplayer game but i have a little question.
    I heard that certain things need to be made so that the server creates it and replicate it to the clients. (With switch has authority) to avoid that clients get something double

    So if im right then the following things need to be in server side:
    • Item Spawner
    • Wave System
    • Respawn


    And the following things Client side:
    • Movement input
    • Health system interface
    • Ammo system interface


    Thanks for reading maby i sound dumb now haha but its not really clear for me what should be made server side and what not.

    Regards,
    PandaFox
    Last edited by RaketijsjeNL; 03-14-2017, 11:36 AM.

    #2
    Hello and welcome. List looks good but the respawn needs to happen in the server aswell. If you do not want instant respawn (after a specific amount of time), you can make a respawn button, and when the client clicks it, sends a request on the server to respawn his pawn.

    Comment


      #3
      Originally posted by DjSt3rios View Post
      Hello and welcome. List looks good but the respawn needs to happen in the server aswell. If you do not want instant respawn (after a specific amount of time), you can make a respawn button, and when the client clicks it, sends a request on the server to respawn his pawn.
      Thanks for the fast reply and i will look into it.
      Atm im checking if the assault rifle spawner works in multiplayer:

      At both blueprints i have replicates en replicate movement checked.

      Assault Rifle Spawner Blueprint (Makes it possible that a assault rifle model get spawned and if its picked up it respawns for all)
       
      Spoiler

      AttemptToSpawn Function inside the spawner blueprint (This one gets called from the main blueprint and checks if there is a item spawned):
       
      Spoiler

      SpawnItem Function inside the spawner blueprint (This one gets called from the function AttemptToSpawn and spawns the items when there is no item):
       
      Spoiler

      Assault Rifle Pickup Blueprint (Makes it possible that the player can pick it up and destroys it after picking it up for all)
       
      Spoiler

      With this setup the server and client see the item getting spawned and when a player walks over the item it gets destoryed for all.
      Just wanna be sure if im doing it right.

      Regards,
      PandaFox

      Comment


        #4
        Hello All,

        Not sure what i posted above is right.

        Atm im having problems with getting everything replicated etc for every client.
        I found several toturails but still after watching them i found out that they didn't do everything on the right way.
        (without that they show things like make a function and 2 min later oh no no function needed take all out and delete it.)

        Somebody a suggestion which toturails are done right.

        Regards,
        PandaFox

        Comment

        Working...
        X