Multiplayer Actor Spawns
I am using 4.16 right now and I have an inventory system. (like most it has a drop system) The drop system spawns the actor (the item) and if it is in multi player only the client can see it, Not the server nor other clients can see it.
Here is the setup I have for dropping the item.
And this is not only for the items, any actor that a player spawns in can only be seen by the client that spawned the actor. this problem I have can also be found in the First Person Shooter Template that unreal engine comes with. the spawned projectiles are only seen by the client that spawned them. If there is a fix pleas let me know because that would really help for multiplayer!
~Thanks in advance!
asked Jul 11 '17 at 01:56 AM in Blueprint Scripting
Ue4 using server - client architect, that means replicated actord will be networked only if auth spawn that. This authotative is always the server...
To spawn things on server, you need use Remote Calls. This remote calls as their name say can run on remote machine. For example you can declare a function which will be invoked from Client but code, function body will be executed on Server!
I recommend to read two thing:
The Best networking ecplanation by the Great Cedric ! :)
https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Actors/RPCs/ And Epic officially doc about how to use RPCs :)
answered Jul 11 '17 at 07:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here