Validate player start interaction reach distance in scene documents
This commit is contained in:
@@ -2648,6 +2648,20 @@ function validatePlayerStartEntity(
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
!isFiniteNumber(entity.interactionReachMeters) ||
|
||||
entity.interactionReachMeters <= 0
|
||||
) {
|
||||
diagnostics.push(
|
||||
createDiagnostic(
|
||||
"error",
|
||||
"invalid-player-start-interaction-reach",
|
||||
"Player Start interaction reach must remain a finite number greater than zero.",
|
||||
`${path}.interactionReachMeters`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (!isPlayerStartMovementTemplateKind(entity.movementTemplate?.kind)) {
|
||||
diagnostics.push(
|
||||
createDiagnostic(
|
||||
|
||||
Reference in New Issue
Block a user