Mission Maker API
Script Sonoran Radio towers, active inventory radios, and signal events in an Arma 3 mission.
The editor module is recommended for most missions. The following SQF functions are available when a mission needs dynamic towers or a custom inventory integration.
Register a coordinate-only tower
[
"altis_north_relay", // Unique tower ID
[14567, 16789, 185], // Position ASL
8000, // Range in meters
4, // Total dishes
objNull, // Physical object
4, // Active dishes
true // Powered
] call sonoran_radio_fnc_registerTower;Registering the same ID again replaces the existing tower record.
Register a physical object
Give the editor object a variable name such as radioTowerWest, then run this on the server:
[
"altis_west_relay",
[],
6000,
4,
radioTowerWest,
4,
true
] call sonoran_radio_fnc_registerTower;The mod derives the antenna location from the top of the object's bounding box. Killing or deleting the object turns off the tower and sets its active dishes to zero.
Change tower state
Unregister a tower
Read local signal quality
Run on a player client:
Quality is normalized from 0 to 1.
Subscribe to signal changes through CBA:
Override the active radio item
For a nonstandard client-side inventory system:
Return to automatic ItemRadio detection with:
Enable the Arma Debug Console
The console is already available while previewing from Eden. To enable it elsewhere, use Eden's Attributes > General > States > Debug Console option or add one of the following values to the mission's description.ext:
During the mission, press Esc and select Debug Console. Use Server Exec for tower registration/state calls and Local Exec for player inventory or local signal calls.
Do not publish a public mission with enableDebugConsole = 2. It allows every player to execute arbitrary SQF.
See Bohemia Interactive's Arma 3 Debug Console documentation for the complete access rules.
Last updated
Was this helpful?

