Closed TDeakin1013 closed 3 weeks ago
_isOn = ["ACRE_PRC77_ID_1", "getOnOffState"] call acre_sys_data_fnc_dataEvent; hint str _isOn;
can be used to determine when radio is ON or OFF.
VERSION 1:
Comment from @Kayoshu :
only one important is that you saved battery_remaining + id in missionNameSpace, I'd better go for saving it on the radio object itself (without id): if acre is like tfar, id can change when a player drop radio, and another one equips it, also I'm sure id will change if a player disconnect/reconnect this is a better test https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/blob/battery-management/functions/battery/fn_updateBatteryLevel.sqf#L16 than https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/blob/battery-management/functions/triangulate/fn_triangulate.sqf#L24
Proof of concept - Battery simulation using on/off status of radio. Can be used to better enforce comms windows and add another interesting angle to the RTO and Covey role.