I have a class inheriting from character and a controller. In the controller i want to spawn the character. It has to be replicated on all clients. Which steps, in code, do i need for this? i can’t get it to work for myself… .
I tried many things but i can’t get the pawn to show on other clients. There aren’t a lot of clear explanations about this stuff.
I’ll show you what i have tried so far.
In the controller’s header i have:
Then my pawn is inheriting from ACharacter.
I ticked every checkbox in my controller and pawn that says something about should replicate and things like that so i don’t know why they are not on all clients. It’s only visible on it"s own screen.
You should post what you have tried and why it doesn’t work. You would need to create a server function to serve this purpose or just work off of existing functions such as BeginPlay. (ran on client and server). Just make sure you check if you have authority if you are going to spawn through begin play.