How to spawn actor from client and replicate it?
I'm trying to learn some networking, I've watched the Unreal networking tutorials, but I still can't accomplish a very basic task:
If client presses a key to spawn an actor, it spawns and is visible on all other clients & server.
This is what I have so far:
... But this works only when server presses the key - in this case it shows up in all clients. But when one of clients presses a key to spawn an actor, it shows up only on the client who presses it.
The 'Replicates' checkbox is checked on the spawned actor.
I feel like I miss something basic, maybe my brain really doesn't like networking :( Any clues?
asked Jul 01 '16 at 05:53 PM in Blueprint Scripting
Here is how you should go for what you want to achieve:
In your actual blueprint, your Spawn It event should be a server event. Right now I think you setted up as a multicast event, which only servers can execute. That's why it only works on server.
Good luck !
Probably is Spawned, but on world location 0,0,0? I had the same issue.
answered Jul 04 '16 at 05:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here