C
/*
File: initPlayerLocal.sqf
Description:
Starts the initialization of the player.
*/
"BIS_fnc_MP_packet" addPublicVariableEventHandler {_this call life_fnc_MPexec};
if(!hasInterface) exitWith {}; //This is a headless client, he doesn't need to do anything but keep being headless..
#define __CONST__(var1,var2) var1 = compileFinal (if(typeName var2 == "STRING") then {var2} else {str(var2)})
__CONST__(BIS_fnc_endMission,BIS_fnc_endMission);
[] execVM "core\init.sqf";
[] execVM "core\functions\fn_emptyFuel.sqf";
//Execute JIP code.
if((_this select 1)) then {
[] execVM "core\jip.sqf";
};
private ["_windDir"];
while {true} do
{
if(windDir >= 340 && windDir <= 360 || windDir >= 0 && windDir <= 20) then {_windDir = "Nord";};
if(windDir >= 20 && windDir <= 60) then {_windDir = "Nord-Ost";};
if(windDir >= 60 && windDir <= 110) then {_windDir = "Ost";};
if(windDir >= 110 && windDir <= 160) then {_windDir = "Sued-Ost";};
if(windDir >= 160 && windDir <= 200) then {_windDir = "Sued";};
if(windDir >= 200 && windDir <= 250) then {_windDir = "Sued-West";};
if(windDir >= 250 && windDir <= 290) then {_windDir = "West";};
if(windDir >= 290 && windDir <= 340) then {_windDir = "Nord-West";};
hint format ["Wind Richtung: %1",_windDir];
sleep 1320;
};
pb_positionen = [[23696.1,17315.2,0.00143886],[23684.3,17270.7,0.00143886],[23706.2,17253.3,0.00275731],[23736.3,17247.7,0.00143886],[23744.9,17264.1,0.00143886],[23665.5,17303.1,0.00143886],[23665.4,17295.5,0.00143886],[23649.7,17278.4,0.00143886],[23667.4,17265.3,0.00143886]];
joinmode = 0;
Alles anzeigen
Klammer zu viel