Ambient Sound Interval¶
文档版本:1.21.50.25
Sets the entity's delay between playing its ambient sound.
架构¶
ambient_sound_interval:
{
string "event_name" : opt
array "event_names" : opt
{
object "<any array element>" : opt
{
string "condition" : opt
string "event_name" : opt
}
}
number "range" : opt
number "value" : opt
}
event_name
:string- Level sound event to be played as the ambient sound.
event_names
:array- 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.
event_names
<any array element>
:object
<any array element>
condition
:string- The condition that must be satisfied to select the given ambient sound.
event_name
:string- Level sound event to be played as the ambient sound.
range
:number- Maximum time in seconds to randomly add to the ambient sound delay time.
value
:number- Minimum time in seconds before the entity plays its ambient sound again.