-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstMission.sqf
More file actions
38 lines (30 loc) · 1.24 KB
/
firstMission.sqf
File metadata and controls
38 lines (30 loc) · 1.24 KB
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
private["_taskPos", "_ambientPos", "_this"];
target_1 setPosATL (getPos s_ammo);
_taskPos = getMarkerPos (_this select 0);
_ambientPos = getPosATL target_1;
_rating = 1000;
[s_boss, "BRIEFING"] call BIS_fnc_ambientAnim;
[s_journalist, "STAND_U3"] call BIS_fnc_ambientAnim;
[s_worker, "LISTEN_BRIEFING"] call BIS_fnc_ambientAnim;
waitUntil{taskOneActive};
s_scienceGuy sideChat "Watch out for the active CAS run marked on the map.";
playSound "cas";
[] spawn { [target_1, player, true] call BIS_fnc_moduleCAS; };
_ambientPos spawn
{
private ["_this", "_smoke", "_explosion"];
sleep 20;
_explosion = "Bo_GBU12_LGB_MI10" createVehicle _this;
_explosion setPosATL [_this select 0, _this select 1, (_this select 2) + 10];
_explosion setVelocity [0, 0, -10];
_smoke = "test_EmptyObjectForFireBig" createVehicle _this;
_smoke setPosATL _this;
};
waitUntil{(s_supplies distance _taskPos <= 8)};
{private ["_x"]; ropeDestroy _x;} forEach ropes vehicle player;
s_scienceGuy sideChat "Good job. Now pick up the refugees and drop them off at the Hospital.";
playSound "t1_finished";
["TaskSucceeded",["","Deliver Supplies"]] call BIS_fnc_showNotification;
t_task1 setTaskState "Succeeded";
player addRating _rating;
[_this select 1, _this select 2] call g_secondMission;