From 4055ed9228de73f9c4d5f56d46bbd9266f1e76d5 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 7 Jun 2022 20:24:11 +0200 Subject: [PATCH] Updated ambient_sound_interval --- .../components/ambient_sound_interval.json | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/source/behavior/entities/format/components/ambient_sound_interval.json b/source/behavior/entities/format/components/ambient_sound_interval.json index 45bf2ad6..aa967976 100644 --- a/source/behavior/entities/format/components/ambient_sound_interval.json +++ b/source/behavior/entities/format/components/ambient_sound_interval.json @@ -11,17 +11,36 @@ "description": "Level sound event to be played as the ambient sound.", "title": "Event Name" }, + "event_names": { + "type": "array", + "description": "List of dynamic level sound events, with conditions for choosing between them. Evaluated in order, first one wins. If none evaluate to true, 'event_name' will take precedence.", + "items": { + "type": "object", + "properties": { + "condition": { + "type": "string", + "description": "The condition that must be satisfied to select the given ambient sound", + "title": "Condition" + }, + "event_name": { + "type": "string", + "description": "Level sound event to be played as the ambient sound.", + "title": "Event Name" + } + } + } + }, "range": { + "title": "Range", "type": "number", - "default": 16, - "description": "Maximum time in seconds to randomly add to the ambient sound delay time.", - "title": "Range" + "default": 16.0, + "description": "Maximum time in seconds to randomly add to the ambient sound delay time." }, "value": { + "title": "Value", "type": "number", - "default": 8, - "description": "Minimum time in seconds before the entity plays its ambient sound again", - "title": "Value" + "default": 8.0, + "description": "Minimum time in seconds before the entity plays its ambient sound again." } }, "examples": [