HudInteractTriggers

Updated 2 weeks ago

HudInteractTriggers

HudInteractTriggers creates an interactable HUD prompt in the level that appears at the bottom of the player’s screen, similar to the HUD shown when approaching and using a terminal. Players can interact with this HUD to trigger events.

ProgressEvents triggers events based on the interaction progress, using the same style as SPO.

CancelEvents defines events triggered when the player cancels or gives up the interaction.

{
  "Enabled": false,
  "MainLevelLayoutIDs": 0,
  "HudInteractTriggers": [
    {
      "ID": "hud_interact_01",
      "Enabled": true,
      "Position": { 
       "x": 0, 
       "y": 0, 
       "z": 0 
       },
      "Radius": 0.5,
      "HudText": "<color=#00BFFF>Read data</color>",
      "HoldTime": 3.0, //The time required to complete the interaction
      "Cooldown": 1.0,
      "DebugColor": "#00BFFF",
      "DebugAlpha": 0.35,
      "DebugLabel": true,
      "ProgressEvents": {
        "Progress": -1,
        "Events": []
      },
      "CancelEvents": [],//Events triggered when interaction is interrupted
      "Events": []//Events triggered when interaction is completed
    }
  ]
}