Jump to content
Sign in to follow this  
audiocustoms

Mobile ACRE Radio Retransmitter / Relay-Station

Recommended Posts

Hello...

I'm dealing with a problem for days now and i'm totally lost...

I want to create a mobile Radio Relay Station / Radioretransmitter. I've no clue how to call something like that in english, but i think you got the idea.

I know how to set up a radio network for big maps with several STATIC antennas, but i need a mobile solution for one of my missions.

I was planing on deploying this station as one of the objectives.

I already worked on the HOG MHQ v1.0 by =Mason= to create a deployable station with several antennas and stuff. It all works perfect for my use. But i have major problems to get the antennas after spawning to retrans the frequencies i need.

What i know is, that this funktion

[ "ACRE_PRC117F", someObject, 80.025, 81.025, 20000] call acre_api_fnc_attachRxmtToObj;

is used to attach the retrans to a specific object like an antenna and listens on freq 1, sends on freq 2.

But i need at least 5 frequencies to be transmitted. So i solved it like this (with static antennas placed on the map):

Antenna 1 Init-Field:

[ "ACRE_PRC117F", antenna1, (CH A), (CH V), 20000] call acre_api_fnc_attachRxmtToObj; [ "ACRE_PRC117F", antenna1, (CH V), (CH A), 20000] call acre_api_fnc_attachRxmtToObj;

[ "ACRE_PRC117F", antenna1, (CH B), (CH W), 20000] call acre_api_fnc_attachRxmtToObj; [ "ACRE_PRC117F", antenna1, (CH W), (CH B), 20000] call acre_api_fnc_attachRxmtToObj;

[ "ACRE_PRC117F", antenna1, (CH C), (CH X), 20000] call acre_api_fnc_attachRxmtToObj; [ "ACRE_PRC117F", antenna1, (CH X), (CH C), 20000] call acre_api_fnc_attachRxmtToObj;

[ "ACRE_PRC117F", antenna1, (CH D), (CH Y), 20000] call acre_api_fnc_attachRxmtToObj; [ "ACRE_PRC117F", antenna1, (CH Y), (CH D), 20000] call acre_api_fnc_attachRxmtToObj;

[ "ACRE_PRC117F", antenna1, (CH E), (CH Z), 20000] call acre_api_fnc_attachRxmtToObj; [ "ACRE_PRC117F", antenna1, (CH Z), (CH E), 20000] call acre_api_fnc_attachRxmtToObj;

It would be pretty helpful if somebody could tell me how to get these functions working in this script:

_man = _this select 1;

_add = _this select 2;

_behind = MOBILE_HQ modelToWorld [10,0,0];

//crate setPos (MOBILE_HQ modelToWorld [0,-7,((position MOBILE_HQ) select 2)]);

_behind_guard = MOBILE_HQ modelToWorld [12,-9,0];

//crate setPos (MOBILE_HQ modelToWorld [0,-7,((position MOBILE_HQ) select 2)]);

_center = MOBILE_HQ modelToWorld [0,0,0];

//net setPos (MOBILE_HQ modelToWorld [0,0,((position MOBILE_HQ) select 2)]);

_behind_cover = MOBILE_HQ modelToWorld [0,-12,0];

//cover1 setPos (MOBILE_HQ modelToWorld [0,-12,((position MOBILE_HQ) select 2)]);

// remove addaction

MOBILE_HQ removeAction _add;

MOBILE_HQ setFuel 0;

// Antenna to retransmitt five frequencies

antenna1 = "ACRE_OE_303" createVehicle [0,0,0];

antenna1 setPos [_behind select 0, _behind select 1, 0];

antenna1 setDir ((getDir MOBILE_HQ) +180);

antenna1 setVehicleInit "this allowDamage true;";

// Camonet to cover up the container

net = "Land_camoNetB_EAST_EP1" createVehicle [0,0,0];

net setPos [_center select 0, _center select 1, 0];

net setDir ((getDir MOBILE_HQ) +360);

net setVehicleInit "this allowDamage true;";

// UAV Station (useless but good-looking)

antenna2 = "USMC_WarfareBUAVterminal" createVehicle [0,0,0];

antenna2 setPos [_behind_cover select 0, _behind_cover select 1, 0];

antenna2 setDir ((getDir MOBILE_HQ) +90);

antenna2 setVehicleInit "this allowDamage true;";

processInitCommands;

_mhqsetup = [nil, MOBILE_HQ, "per", rADDACTION, "Undeploy Radio Relay","HOG_scripts\HOG_MHQ\deploy\Undeploy.sqf"] call RE;

"MHQMKR" setMarkerTextLocal "Radio Relay CH2 & CH3 Deployed";

[player,nil,rsideChat,"Radio Relay deployed and marked on map. CH2 and CH3 will be transmitted."] call RE;

hint "Radio Relay deployed";

HQ_Deployed = 1; publicVariable "HQ_Deployed";

// sleep 0.5;

The original is taken from the HOG MHQ v1.0 deployable MHQ-Script by =Mason=

http://forums.bistudio.com/showthread.php?143098-HOG-MHQ-v1-0

A pretty coole "nice-to-have" would be, if i somehow could get a menu after deploying to choose 5 frequencies out of the 99 posible on ACRE radios.

Something like this:

Dropdown menu 1 - CH 5

Dropdown menu 2 - CH 26

Dropdown menu 3 - CH 44

and so on...

Thanks for your help...

Like i said, im totally lost...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×