Skip to content
Discussion options

You must be logged in to vote

If you set Limit ship lever distance to 1 or less, it disables the distance limit check in the mod. Dying won't change it to a normal distance.

StartMatchLever lever = FindFirstObjectByType<StartMatchLever>();
float distanceToLever = Vector3.Distance(lever.transform.position, player.transform.position);
if (configLimitShipLeverDistance.Value > 1f && distanceToLever > configLimitShipLeverDistance.Value)
{
Log.LogWarning($"Player #{SenderPlayerId} ({player.playerUsername}) tried to end the game while too far away ({distanceToLever}).");
return;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Charlese2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13 on March 18, 2024 10:44.