Repository navigation
Expand file tree
/
Copy pathinitPlayerLocal.sqf
More file actions
92 lines (56 loc) · 1.58 KB
/
Copy pathinitPlayerLocal.sqf
File metadata and controls
92 lines (56 loc) · 1.58 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Gruppen Manger
["InitializePlayer", [player, true]] call BIS_fnc_dynamicGroups;
// Briefing
[player] execVM "mission\briefing.sqf";
// Loadout Auswahl
[player] call TFW_fnc_loadoutselect ;
// Intro Film
_introvar = "param_intro" call BIS_fnc_getParamValue;
waitUntil {!(isNull (findDisplay 46))};
if ( _introvar == 1 ) then {
["intro.ogv"] call BIS_fnc_playVideo;
};
// Auto Respawn to Group
_respawnvar = "param_respawntime" call BIS_fnc_getParamValue;
if (serverTime > _respawnvar) then {
[player] call TFW_fnc_teleport_to_group;
systemChat "Automatisch zur Gruppe Teleportiert."
};
// Techcheck Funktion
_techcheckvar = "param_techcheck" call BIS_fnc_getParamValue;
_techcheckcode = profileNamespace getVariable "tfw_techcheck";
if (isNil "_techcheckcode") then
{
profileNamespace setVariable ["tfw_techcheck", 0];
saveProfileNamespace;
_techcheckcode = 0;
};
sleep 10;
if (_techcheckvar == 0) then
{
profileNamespace setVariable ["tfw_techcheck",0];
profileNamespace setVariable ["tfw_techcheck",12345];
saveProfileNamespace;
sleep 10;
systemChat "Techcheck Abgeschlossen";
sleep 10;
endMission "END5";
};
if (_techcheckvar == 1) then
{
if (_techcheckcode == 12345) then
{
systemChat "Techcheck Code Akzeptiert";
} else {
systemChat "Techcheck Code nicht Akzeptiert";
sleep 10;
endMission "END6";
};
};
//Zeus FPS anzeige
_zeusvar = "param_zeus" call BIS_fnc_getParamValue;
if ( _zeusvar == 1 ) then
{
[] call TFW_fnc_fpszeus ;
};
if (true) exitWith {};