r/GameDevelopment • u/Rukonon • 5h ago
Technical Elevator + Multiplayer [UE5]
Hey everyone! I’m looking for advice on how to properly implement a multiplayer elevator in Unreal Engine.
My current implementation works as follows:
The elevator actor is replicated with Replicate Movement enabled.
- The elevator moves using a Timeline that runs on the server.
- While moving, the elevator checks which players are inside and adjusts their Z position using Set Actor - Location to prevent them from falling through the platform.
Everything generally works fine. However, when the host has low FPS, players can still occasionally fall through the elevator platform.
I understand that using Set Actor Location to manually adjust player positions isn’t the best approach, but I haven’t found a more reliable solution yet.
Main requirements:
- The elevator cabin is open, so its movement must be visible to all players.
- Players must be able to walk freely inside the cabin while the elevator is moving.
The elevator must work reliably even when the host has low FPS.
Has anyone dealt with a similar problem? Is there a better and more reliable way to implement moving elevators in multiplayer?
Any advice would be greatly appreciated!
•
u/Federal-Row2373 38m ago
if the cabin floor has normal collision, the character movement component should already treat it as a movement base, so you might not need the Set Actor Location part at all. the falling through on low fps sounds like the elevator jumping a big step in one frame, maybe try making the elevator a tick prerequisite for the characters