forked from IDI-Systems/acre2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfnc_setOnOffState.sqf
51 lines (46 loc) · 928 Bytes
/
fnc_setOnOffState.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "..\script_component.hpp"
/*
* Author: ACRE2Team
* SHORT DESCRIPTION
*
* Arguments:
* 0: ARGUMENT ONE <TYPE>
* 1: ARGUMENT TWO <TYPE>
*
* Return Value:
* RETURN VALUE <TYPE>
*
* Example:
* [ARGUMENTS] call acre_sys_sem70_fnc_setOnOffState
*
* Public: No
*/
/*
* This function sets the current on/off state of
* the radio.
*
* Type of Event:
* Data
* Event:
* setOnOffState
* Event raised by:
* - Several functions
*
* Parsed parameters:
* 0: Radio ID
* 1: Event (-> "setOnOffState")
* 2: Eventdata
* 2.0: 0/1 for off/on
* 3: Radiodata
* 4: Remote Call (-> false)
*
* Returned parameters:
* nil
*/
params ["_radioId", "", "_eventData", "_radioData"];
HASH_SET(_radioData,"radioOn",_eventData);
if (_radioId == acre_sys_radio_currentRadioDialog) then {
if (_eventData isEqualTo 0) then {
} else {
};
};