Comrades in Arms Discussion Board
radioGen - a kbTell generator - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: radioGen - a kbTell generator (/showthread.php?tid=3354)



radioGen - a kbTell generator - Alwarren - 05-02-2016

This is a program I wrote to generate radio transmissions for Arma 3 missions. It comes with a pdf that describes the function. It might be useful to some, have a look.


I should mention that you just need to write a very simple outline of the radio traffic, and it will generate everything for you including sqf scripts that take over the to-and-fro of the traffic. You need Java for this.


Re: radioGen - a kbTell generator - Variable - 05-30-2016

Set to sticky.


RE: radioGen - a kbTell generator - Alwarren - 01-17-2018

I use this code to initiate the radio conversation.
Code:
/*
 * Send a speech sample from sender to recipicient with proper locality set up.
 * 
 * Params:
 * _this select 0: Speaker : Object
 * _this select 1: Receipicient : Object
 * _this select 2: sentenceID : String
 * _this select 3: (optional) .bikb topic (default: speech.bikb) : String
 * _this select 4: (optional) Force radio (default: true) : Boolean, Number, or String
 *     true/false to force radio or not, Number 1-10 for custom radio channel, string for
 *    specific radio channel "GLOBAL", "SIDE", "GROUP", "VEHCILE", "DIRECT", "COMMAND"
 *
 */

params [
["_speaker", objNull, [objNull]],
["_listener", objNull, [objNull]],
["_sentence", "", [""]],
["_topic", "speech", [""]],
["_forceRadio", true, [true,0,""]]
];

if (isNull _speaker || isNull _listener) exitWith {};
if (_sentence == "") exitWith {};

[_speaker, [_listener, _topic, _sentence, ["",{},"",[]],_forceRadio]] remoteExec ["kbTell", _speaker];