So I’m trying to add pushing into my 3D multiplayer project and I’m a bit confused on how to get it so the pushed player moves in the direction of where the pushing player is facing
I want it to apply a quick force onto the pushed player in the direction the pushing player is facing but I don’t really know how to go about doing that.
never mind, I figured it out
1 Like
When u solve something, sometimes it helps to explain here how u solved to, so others find this same problem they can learn from other mistakes.
4 Likes
You know, yeah that does make good sense
I do want to note that my solution is kinda scuffed and only works with 2 players, any more and it breaks so rip but
So how I ended up going about this is giving both players a respective cube

Then I made the cube follow the player that owns it
Then after that: I check if you press the left mouse, if the player object isn’t owned by you and then if your 3D raycast hits a player.
Then it sends a message to the player hit
Finally, when the message is received, you check the owning instance and if the ‘push’ cube is not your own.
then you add a force to the player towards the push cube, but by making the speed value negative it pushes the opposite direction which simulates a button activated push.
I might suck at teaching so idk how helpful this actually is and again this only works with 2 players you’ll either have to tweak this up or find another solution in order to get it to work with more players.
1 Like
All i can say is well done. 
1 Like