How to Spawn the actor on all clients including the Server

If you want “all connected clients” to spawn a cube, then the best approach is go through controller to Game Mode and have the GM loop the Game State Player Array.

For Each (Player Array) : Get Pawn → Spawn Actor of Class (set owner && Instigator)

This will have the GM spawn a replicated cube for each connected client.

Note: The GM only exists on the Server. Clients do not get a copy of the class, So you have to RPC to server and have the Servers proxy call the GM.


1 Like