-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIntel Script.txt
More file actions
16 lines (12 loc) · 867 Bytes
/
Intel Script.txt
File metadata and controls
16 lines (12 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//This is an example of using the DataTerminal as an intel source that gives all player the designated intel into their diary.
//It should be placed into the terminals Init box and named correctly.
Variable Name = IntelTerminal
init =
this addAction ["Download Plans",{
params ["_target", "_caller"];
PlansDownloaded = 1; publicVariable "PlansDownloaded";
[_target, 3] remoteExec ["BIS_fnc_dataTerminalAnimate"];
sleep 5; [_target, 0] remoteExec ["BIS_fnc_dataTerminalAnimate"];
"Your Intel has been downloaded" remoteExec ["hint"];
{ player createDiaryRecord ["Diary", ["Intel", "Enemy are planning an attack on <marker name='attack'>Chernagorsk Govt Building</marker> using under cover rebels<br /><img image='undercover_agents.jpg' />"]] } remoteExec ["call", 0, true];
},nil,0.1,true,true,"", "isNil ""PlansDownloaded"" && ((_target distance _this) < 2)"]