-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInteractable Object Intel.txt
54 lines (48 loc) · 1.56 KB
/
Interactable Object Intel.txt
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
52
53
54
///////// Working //////////// no hint pop up or diary entry ///////////////////////////////////////
[
this,
"Download Intel",
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa",
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa",
"(_this distance _target < 3)",
"_caller distance _target < 3",
{},
{},
{
0 = [0.95] execVM 'lights.sqf'
},
{},
[],
12, // Length of time player has to hold the action for it to complete
0,
true,
false
] call BIS_fnc_holdActionAdd;
/////// WORKING ////////////// with hint and diary entry /////////// Also it executed and sqf file in this case the lights out script///////////////////////////////////
[
this,
"Cut power to the compound",
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_forceRespawn_ca.paa",
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_forceRespawn_ca.paa",
"(_this distance _target < 3) && isNil 'intel_photo_taken'",
"_caller distance _target < 3",
{},
{},
{
intel_photo_taken = 1;
publicVariable "intel_photo_taken";
"Compound power has been cut" remoteExec ["hint"];
{
player createDiaryRecord [
"Diary", [
"Intel",
"Compound power has been cut"
]
]
} remoteExec ["call", 0, true]; 0 = [0.95] execVM 'lights.sqf';
},
{},
[],
12, // Length of time player has to hold the action for it to complete
0
] call BIS_fnc_holdActionAdd;