Spawning actor on the mouse position (client)
I'm trying to spawn an actor on client's cursor position. It works perfectly if the player IS the server, but I have troubles when a client tries to spawn the actor.
I've tested server's and client's variable "CursorToWorldLocation", and server's one always set to the default.
Here is my Blueprint. CursorLogic is activated by Tick event.
How can I manage to pass client's variable to the server?
Here is my Spawn event if it helps.
P.S. It's all from the Character Blueprint if it helps.
Successfully managed to deal with my problem.
First of all, I've added a custom event in the PlayerController which sets 'local' CursorToWorldLocation. Also, transferred spawn node to the PlayerController too. Both runs on the server.
The only change I've made to the CursorLocation event is calling said custom event from the PlayerController.
And the spawn sequence, if you would need it.
answered Jun 27 '18 at 01:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here