For scripters¶
Everything can be driven from your own scripts through ordinary values and attributes. There is no API to require.
Recipes¶
| You want to | Do this |
|---|---|
| Retune a mic or receiver | Set its Group / Channel IntValues |
| Cut power to a receiver (breaker, power cut) | Set its MainPower BoolValue to false; true restores it |
| Know if a charger bay holds a mic | Read Bay 1 Has Mic / Bay 2 Has Mic |
| Know who is talking | Receiver attribute Live (true while a powered mic on its channel is held). Rack: R1_Live / R2_Live |
| Read a receiver's state | Attributes Power, DeviceName, Group, Channel, Frequency, GainDb, OutputLevel, Linked (R1_ / R2_ on a rack). Lite: Power, Channel, Live |
| Read a mic's state | Tool attributes Power, Battery (%), Group, Channel, Frequency, MicOffsetDb, RfPowerMw, Locked. Lite: Power, Channel |
| Feed or take audio | Wire into or out of the receiver's SLXD_Audio folder (see Speakers) |
| Make any part a speaker | Tag it SLXD_Output, or give a model a Receiver ObjectValue and an Everywhere BoolValue |
| Check whether someone may pick up a mic | Player attribute SLXD_CanPickUp |
Copies of receivers, mics and chargers added while the game runs are picked up automatically within half a second.