An Arma3 artillery sound ranging script
It is possible to set variables on units and vehicles to mark them for a specific side or overrule the general settings.
It is important that the variables are set for the server, as all calculation and checking is done on it, that is why the synchronisation flag (third option of setVariable
) is set to true
in the examples.
Boolean
Sets the player unit as sound data receiver. Enables the player to see the markers on map regarding the sound ranging. Only player units are supported, no AI units or vehicles. Default this variable is regarded as false
.
player setVariable ["arsr_receptionAllowed", true, true];
Boolean
Variable on a listening vehicle to enable or disable its active listening capabillity. If not set, it is assumed the vehicle is listening and the variable value is true
.
_listener setVariable ["arsr_enabled", false, true];
Positive Number or 0
Variable on a listening vehicle to overrule the "Addon Options" value for the "Time to calculate for listener" setting.
_listener setVariable ["arsr_listenerCalcDelay", 0, true];
Positive Number or 0
Variable on a listening vehicle to overrule the "Addon Options" value for the "Listener accuracy" setting.
_listener setVariable ["arsr_listenerAccuracy", 0, true];
Number
Variable on a listening vehicle to overrule the "Addon Options" value for the "Listener max listening distance" setting.
_listener setVariable ["arsr_listenerMaxDistance", 0, true];
Group Side
Variable on a listening vehicle to set it which side it belongs to and ignores artillery fire from that side. If not set, it will pick up and report fire from any artilllery piece from any side.
_listener setVariable ["arsr_side", blufor, true];