Start broadcast voice
origins-powerful-powers:start_broadcast_voiceentity action
Starts broadcasting the entity's voice to every online player who passes listeners. It replaces any broadcast already running.
| Field | Type | Default | Description |
|---|---|---|---|
listeners | Bi-entity condition type | required | Checked for each online player, each time audio is sent. The actor is the broadcaster and the target is the possible listener. |
ticks | Integer | -1 | How long it lasts. 0 or less means until stop_broadcast_voice. |
- Listeners also hear normal nearby audio, so a listener next to the broadcaster hears them twice. Use
in_voice_range_ofinverted to leave out players already in range. - The broadcaster never hears themselves, and force-deafened listeners hear nothing.
listenersis checked as audio arrives, so players who start or stop matching it are added or dropped straight away.
Example: a radio. Everyone with the mypack:radio power who is out of voice range hears you for 10 seconds.
{
"type": "origins:active_self",
"key": {
"key": "key.origins.secondary_active"
},
"cooldown": 400,
"hud_render": {
"should_render": true
},
"entity_action": {
"type": "origins-powerful-powers:start_broadcast_voice",
"ticks": 200,
"listeners": {
"type": "origins:and",
"conditions": [
{
"type": "origins:target_condition",
"condition": {
"type": "origins:power",
"power": "mypack:radio"
}
},
{
"type": "origins-powerful-powers:in_voice_range_of",
"inverted": true
}
]
}
}
}