So, I’m making a multiplayer game with a grapple hook. And I want my player to get launched into the direction of the grapple once the grapple activates. The Cable works, everything works!
Except for launching the player towards the grapple hook…
I’ve tried setting my Custom event to every replication setting, But it still doesn’t work.
Even tried making a Custom Event Server and Client. Still Doesn’t work.
Does anyone have any tips??
Here is my code btw:
(Note The Launch Grapple is currently on multi-cast, while I look for a solution)
Good evening! Here’s a clearer and more polished version:
All authority should be handled by the server, so I recommend the following setup.
First, create a Custom Event in your Game Mode and add two input parameters:
Character (use the Character data type)
Vector
Set this event’s replication to Run on Server.
Next, in your Character blueprint, create another Custom Event called Play Launch.
Also set this event to Run on Server — this will act as the entry point.
Then, go back to your Game Mode event and add the Launch Character node.
Connect all of its inputs to the parameters of your Custom Event.
Finally, whenever you want to use Launch Character, simply call Play Launch from your Character.