Hi,
New to multiplayer scripting I’m trying to make a very basic mantle, ejecting the character from the edge at the end. I hold space to stay on the edge, no movement here, and letting go ejects.
My edges have a component that tags them directly.
On server/client0 it works fine but my client1 have troubles. When I jump on the edge it does the jump to anim but my character goes straight back to ground and does not stay on the edge.
Can you help me?
I tried making these functions on runserver and/or multicast and it doesn’t change anything.
I don’t understand why it’s falling down instantly like this, looks like the system refreshes it’s location the next frames because it’s not supposed to be here???
I mainly use the character class to add the basic stuff linked to character actions.
I’m using interfaces when it has something to do with world objects like interactions.
The code for the ledgegrab is located in the climbsystem component on the character class.
I did this to not bloat the main event graph with whole systems. Maybe it’s disrupting and making problems in a way idk though.
If you wanna look into it more I’ve put my project on a drive for anyone to look through it, I’m using version 5.4.4.
I’m completely blocked so any help is appreciated!
Link : project
The index represents a client based on his/her join time. Your code was always looking at 0 which is usually the host/server. This isn’t guaranteed though. Host/server could be 1 and joined player could be 0.
With single player you are always 0 and there are no other players to worry about.