All pastes #525773 Raw Edit

Mine

public text v1 · immutable
#525773 ·published 2007-05-31 14:34 UTC
rendered paste body
// This loop is designed to run on the server. Just to test txRadio 

private ["_vehicle"];


ClientTest = false; // set to true via console to test server-client side rxRadio (then PublicVariable it)

ServerTest = false; // set to true via console to test Server side rxRadio (then PublicVariable it) 

If (!local server) then exit;

while {true} do
{
   waitUntil {ClientTest || ServerTest};
   if (ClientTest) then
   {  
      [1,"CLNT->LN:17->ClientTest123","server"] call six_fTxRadio;
      ClientTest = false; // reset test trigger
   };

   if (ServerTest) then
   {   
   		[1,"SVR->LN:23->ServerTest123","server"] call six_fTxRadio;
      if (local server) then { [1,"SVR->LN:24->ServerTest456","server"] call six_fTxRadio;  };
      ServerTest=false;  //reset test trigger
   };                                          

};
if (true) exitwith {}