fib aufzug fehler

This commit is contained in:
2020-08-04 18:57:26 +02:00
parent 301c3847cf
commit 578a671788

View File

@@ -257,6 +257,15 @@ namespace ReallifeGamemode.Server.Managers
[RemoteEvent("sendClientToStage")]
public void ElevatorSendToStage(Player player, string level)
{
//HERELOL
ElevatorPoint nearestElevatorPoint = PositionManager.ElevatorPoints.Find(e => e.Position.DistanceTo(player.Position) <= 1.5);
if (nearestElevatorPoint == null)
{
return;
}
player.Position = ElevatorPoints.Where(e => e.Stage == level).First().Position;
}
}