fib aufzug fehler
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user