The general scenario:
- Each player has its own controller and pawn
- Each player can have multiple “units” (another pawn class + AI controller)
In order to spawn a new unit the player requests a spawn from the server (run on server). That is working as intendet.
If the spawn request succeeds I want the server to tell one or more clients to play a particle effect at a specified position.
run on server : replicates from the client executes on the server
run on owning client: server executes a function and tells the owning client to execute the same function
multicast: tell every client to execute the same function
What I tried was:
calling requestSpawn(run on server) on the client. Within requestSpawn on the server I called a multicast function if the spawn was successful on the server.
With that I only get the effect on the server. Choosing run on client or server won’t make any difference.