Improve interaction prompt phrasing and add player start interaction logic.

This commit is contained in:
2026-04-27 15:41:08 +02:00
parent 94d30252df
commit 50f9e145e4
2 changed files with 5 additions and 2 deletions

View File

@@ -13494,7 +13494,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
>
{runtimeInteractionPrompt === null
? `Aim at an authored Interactable or NPC. ${runtimeInteractInstruction} when a prompt appears.`
: `${runtimeInteractInstruction} "${runtimeInteractionPrompt.prompt}" within ${runtimeInteractionPrompt.range.toFixed(1)}m.`}
: `${runtimeInteractInstruction} to activate "${runtimeInteractionPrompt.prompt}" within ${runtimeInteractionPrompt.range.toFixed(1)}m.`}
</div>
</div>

View File

@@ -138,7 +138,9 @@ import {
import {
DEFAULT_PLAYER_START_INTERACTION_ANGLE_DEGREES,
DEFAULT_PLAYER_START_INTERACTION_REACH_METERS,
getNpcColliderHeight
getNpcColliderHeight,
getPlayerStartMouseBindingCodeForButton,
isPlayerStartMouseBindingCode
} from "../entities/entity-instances";
import type { InteractionLink } from "../interactions/interaction-links";
import type {
@@ -214,6 +216,7 @@ import {
} from "./runtime-scene-build";
import {
resolveDefaultTargetCycleInput,
resolvePlayerStartInteractInput,
resolvePlayerStartLookInput,
resolvePlayerStartPauseInput
} from "./player-input-bindings";