Weiß jemand, ob das Problemlos unter der 5.0 läuft?
LG
Weiß jemand, ob das Problemlos unter der 5.0 läuft?
LG
perx Weiß ich nicht - kannst es ja ausprobieren. Ist ja nicht allzu viel verändert in Altis Life.
Läuft auf jeden Fall schon mal. Jedoch (wieder) nur Clientseitig.
Vermute mal, dass hier F(life_fnc_emergencylights,ANYONE) abhilfe schaffen sollte oder?
perx Solange die Funktion nicht bereits in der CfgFunctions-Klasse enthalten ist, ja.
Bei mir funktioniert das blaulicht nicht bei Medics und bei den Cops auch nicht bei allen Fharzeugen.
Kann mir da jemand helfen?
meine emergencyLightsConfig.h sowie fn_emergencyLights.sqf
sind angehängt.
Keine Errors in den logs!
Ich musste die emergencyLightsConfig.h als spoiler machen.
class emergencyLightsConfig
{
engineTimeout = 0.05;
defaultAttenuation[] = {0.181, 0, 1000, 130};
class west
{
class C_Offroad_01_F
{
class S1
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {-0.560547,0.109863,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {0.487427,0.103027,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = .06;
};
class S3
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {-0.422607,0.106934,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S4
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {0.35144,0.104004,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = .06;
};
class S5
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {-0.261597,0.104004,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S6
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {0.208374,0.103027,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = .06;
};
class S7
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {-0.108643,0.103027,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S8
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0;
brightnessMaximum = 10;
position[] = {0.0594482,0.10791,0.441497};
attenuation[] = {};
phaseTime = 0.2;
timeout = .06;
};
};
class C_SUV_01_F
{
class S1
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.5,0,0.22};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.5,0,0.22};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class B_T_LSV_01_unarmed_black_F
{
class S1
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.9,2.15,-0.05};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.575,2.15,-0.05};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
class S3
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-1.42,0.8,0.65};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
class S4
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.35,0.8,0.65};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
class S5
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-1,-2.4,-0.1};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
class S6
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.7,-2.4,-0.1};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class C_Hatchback_01_F
{
class S1
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.39,0,0.16};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.34,0,0.16};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class I_C_Offroad_02_unarmed_F
{
class S1
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.45,2,-0.0500001};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.55,2,-0.0500001};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
class S3
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.55,2.1,-0.2};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S4
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.45,2.1,-0.2};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S5
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.65,-1.65,-2.98023e-008};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S6
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.75,-1.65,-2.98023e-008};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
};
class B_Quadbike_01_F
{
class S1
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.27,1,-0.65};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.28,1,-0.65};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class B_MRAP_01_F
{
class S1
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.85, -0.9, 0.6};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S2
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.85, -0.9, 0.6};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S3
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.93, -2.8, 0.6};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S4
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.93, -2.8, 0.6};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S5
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.85, 1.475, -0.75};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S6
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.85, 1.475, -0.75};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
};
};
class independent
{
class C_Offroad_01_F
{
class S1
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.34,0,0.57};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S2
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.42,0,0.57};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S3
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.26,2.59,-0.48};
attenuation[] = {0.1, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S4
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.175,2.59,-0.48};
attenuation[] = {0.1, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class C_Offroad_01_repair_F
{
class S1
{
status = true;
color[] = {1, 0.5921, 0};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.34,0,0.57};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S2
{
status = false;
color[] = {1, 0.5921, 0};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.42,0,0.57};
attenuation[] = {};
phaseTime = 0.2;
timeout = 0;
};
class S3
{
status = true;
color[] = {1, 0.5921, 0};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.26,2.59,-0.48};
attenuation[] = {0.1, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S4
{
status = fasle;
color[] = {1, 0.5921, 0};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.175,2.59,-0.48};
attenuation[] = {0.1, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class C_SUV_01_F
{
class S1
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.5,0,0.22};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0;
timeout = 0;
};
class S2
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.0863, 0.5137, 0.9412};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.5,0,0.22};
attenuation[] = {0.3, 0, 100, 130};
phaseTime = 0.2;
timeout = 0;
};
};
class C_Van_01_box_F
{
class S1
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.56,2.15,-0.8};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S2
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.59,2.15,-0.8};
attenuation[] = {0.07, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S3
{
status = false;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {0.72,0.68,0.65};
attenuation[] = {0.17, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
class S4
{
status = true;
color[] = {0.0863, 0.5137, 0.9412};
ambientColor[] = {0.1,0.1,1};
brightnessMinimum = 0.05;
brightnessMaximum = 10;
position[] = {-0.72,0.68,0.65};
attenuation[] = {0.17, 0, 1000, 130};
phaseTime = 0.2;
timeout = 0;
};
};
};
class civilian {};
};
hast du im life_server die Fahrzeuge konfiguriert? In der spawnVehicle musste Du die Fahrzeuge entsprechend eintragen sonst wird das nix
if ((_vInfo select 1) isEqualTo "cop" && ((_vInfo select 2)) in ["C_Offroad_01_F","B_MRAP_01_F","C_SUV_01_F","C_Hatchback_01_sport_F","B_Heli_Light_01_F","B_Heli_Transport_01_F"]) then {
[_vehicle,"cop_offroad",true] remoteExecCall ["life_fnc_vehicleAnimate",_unit];
};
if ((_vInfo select 1) isEqualTo "med" && (_vInfo select 2) isEqualTo "C_Offroad_01_F") then {
[_vehicle,"med_offroad",true] remoteExecCall ["life_fnc_vehicleAnimate",_unit];
};
Hab alles in der datei eingetragen aber trodzdem selber fehler, es funktioniert nur bei manchen cop autos und bei keinem medic ?
im Keyhandler hast du es auch eingetragen? ansonsten schau mal hier [TUTORIAL] Blaulicht für Fahrzeuge einfügen und Konfiguration vereinfachen da ist alles erklärt.
soll ich dafür das blaulicht script hier raus nehmen?
nein, es geht nur darum dass in dem Tutorial alles erklärt ist wo das alles konfiguriert werden muss. Unter anderem musst du die Fahrzeuge auch im Keyhandler hinterlegen.
case 38: {
//If cop run checks for turning lights on.
if (_shift && playerSide in [west,independent]) then {
if (!(isNull objectParent player) && (typeOf vehicle player) in ["C_Offroad_01_F","B_MRAP_01_F","C_SUV_01_F","C_Hatchback_01_sport_F","B_Heli_Light_01_F","B_Heli_Transport_01_F"]) then {
if (!isNil {vehicle player getVariable "lights"}) then {
if (playerSide isEqualTo west) then {
[vehicle player] call life_fnc_sirenLights;
} else {
[vehicle player] call life_fnc_medicSirenLights;
};
_handled = true;
};
};
};
if (!_alt && !_ctrlKey) then { [] call life_fnc_radar; };
};
Alles anzeigen
da müssen auch die Fahrzeuge eingetragen werden, sonst wird das nix
nein, es geht nur darum dass in dem Tutorial alles erklärt ist wo das alles konfiguriert werden muss. Unter anderem musst du die Fahrzeuge auch im Keyhandler hinterlegen.
C: fn_keyHandler.sqf Alles anzeigencase 38: { //If cop run checks for turning lights on. if (_shift && playerSide in [west,independent]) then { if (!(isNull objectParent player) && (typeOf vehicle player) in ["C_Offroad_01_F","B_MRAP_01_F","C_SUV_01_F","C_Hatchback_01_sport_F","B_Heli_Light_01_F","B_Heli_Transport_01_F"]) then { if (!isNil {vehicle player getVariable "lights"}) then { if (playerSide isEqualTo west) then { [vehicle player] call life_fnc_sirenLights; } else { [vehicle player] call life_fnc_medicSirenLights; }; _handled = true; }; }; }; if (!_alt && !_ctrlKey) then { [] call life_fnc_radar; }; };
da müssen auch die Fahrzeuge eingetragen werden, sonst wird das nix
moeck Mit diesem Script muss man die Fahrzeuge nirgends außer in der vorgesehenen Konfigurationsdatei eintragen; nicht in Scripts und vor allem nicht auf dem Server
OssigamerTV Vielleicht wäre es hilfreich, wenn du die Konfig in ein Code-Feld packst^^. Außerdem wären Logfiles ganz hilfreich...
So hab jetzt geschafft, dass fast alle cop fahrzeuge funktionieren außer strider und Qirlin. AUßerdem funktionieren die Medic fahrzeuge immernoch nicht.
In den logs stehen keine Errors.
meine Dateien sind wie im tut und habe jetzt auch das tut von moeck gemacht.
Trodzdem gehen die Blaulichter nicht bei Medic und auch wie gesagt bei Strider und Quirlin nicht.
OssigamerTV Richtige Klassennamen in den richtigen Subklassen ("west", "independent", "opfor" oder "civilian") eingetragen?
Ja alles richtig eingefügt trodzdem wie gesagt funktioniert es nicht.
Hab nochmal geschaut! Kann mir da jemand helfen??
12:04:49 Error in expression <","O_LSV_02_unarmed_F","I_MRAP_03_F"])) if(!(typeOf _vehicle in life_cop_veh)) e>
12:04:49 Error position: <if(!(typeOf _vehicle in life_cop_veh)) e>
12:04:49 Error Missing ;
12:04:49 File core\cop\fn_sirenLights.sqf [life_fnc_sirenLights], line 12
12:04:49 Error in expression <","O_LSV_02_unarmed_F","I_MRAP_03_F"])) if(!(typeOf _vehicle in life_cop_veh)) e>
12:04:49 Error position: <if(!(typeOf _vehicle in life_cop_veh)) e>
12:04:49 Error Missing ;
12:04:49 File core\cop\fn_sirenLights.sqf [life_fnc_sirenLights], line 12
Wie kann ich das beheben?
Datei von der irgendwie gesprochen wird ist hier:
/*
File: fn_sirenLights.sqf
Author: Bryan "Tonic" Boardwine
Description:
Lets play a game! Can you guess what it does? I have faith in you, if you can't
then you have failed me and therefor I lose all faith in humanity.. No pressure.
*/
private["_vehicle"];
_vehicle = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
if(isNull _vehicle) exitWith {}; //Bad entry!
if(!(typeOf _vehicle in ["C_Offroad_01_F","B_MRAP_01_F","B_MRAP_01_hmg_F","C_SUV_01_F","C_Hatchback_01_sport_F","C_Hatchback_01_F","O_LSV_02_unarmed_F","I_MRAP_03_F"])); if(!(typeOf _vehicle in life_cop_veh)) exitWith {}; //Last chance check to prevent something from defying humanity and creating a monster.
_trueorfalse = _vehicle getVariable["lights",FALSE];
if(_trueorfalse) then {
_vehicle setVariable["lights",FALSE,TRUE];
} else {
_vehicle setVariable["lights",TRUE,TRUE];
[[_vehicle,0.22],"life_fnc_copLights",true,false] call life_fnc_MP;
};
Alles anzeigen
if(!(typeOf _vehicle in ["C_Offroad_01_F","B_MRAP_01_F","B_MRAP_01_hmg_F","C_SUV_01_F","C_Hatchback_01_sport_F","C_Hatchback_01_F","O_LSV_02_unarmed_F","I_MRAP_03_F"])); if(!(typeOf _vehicle in life_cop_veh)) exitWith {}; //Last chance check to prevent something from defying humanity and creating a monster.
was hast du da gemacht? Also entweder machst du das so
if(!(typeOf _vehicle in ["C_Offroad_01_F","B_MRAP_01_F","B_MRAP_01_hmg_F","C_SUV_01_F","C_Hatchback_01_sport_F","C_Hatchback_01_F","O_LSV_02_unarmed_F","I_MRAP_03_F"])) exitWith {};
oder falls du mein Tut verwendest so
beides zusammen funzt nicht
Codeif(!(typeOf _vehicle in ["C_Offroad_01_F","B_MRAP_01_F","B_MRAP_01_hmg_F","C_SUV_01_F","C_Hatchback_01_sport_F","C_Hatchback_01_F","O_LSV_02_unarmed_F","I_MRAP_03_F"])); if(!(typeOf _vehicle in life_cop_veh)) exitWith {}; //Last chance check to prevent something from defying humanity and creating a monster.
was hast du da gemacht? Also entweder machst du das so
Codeif(!(typeOf _vehicle in ["C_Offroad_01_F","B_MRAP_01_F","B_MRAP_01_hmg_F","C_SUV_01_F","C_Hatchback_01_sport_F","C_Hatchback_01_F","O_LSV_02_unarmed_F","I_MRAP_03_F"])) exitWith {};
oder falls du mein Tut verwendest so
beides zusammen funzt nicht
OssigamerTV In erster Linie brauchst du diesen Abschnitt überhaupt nicht. moeck Verbreite doch keine Falschinformationen...
So müsste es in der Datei fn_keyHandler.sqf eigentlich aussehen:
//L Key?
case 38: {
//If cop run checks for turning lights on.
if(!isNil {vehicle player getVariable "lights"} && vehicle player != player && _shift) then
{
if (!(vehicle player getVariable "lights")) then
{
[vehicle player, player] spawn life_fnc_emergencyLights;
}
else
{
vehicle player setVariable ["lights", false, true];
};
};
if(!_alt && !_ctrlKey) then
{
[] call life_fnc_radar;
};
};
Alles anzeigen
OssigamerTV sollte das bereits der Fall sein, dass poste mal dein komplette Log...
blackfisch Die wollen ihre Logs nicht posten - Himmel hilf!
Nein hilft nicht Hunter HMG sowie Qirlin funktioniert nicht und medic geht komplett nicht.
=====================================================================
== C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\arma3server.exe
== "C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\arma3server.exe" -mod="@life_server;" -serverMod="" -ip=109.230.249.154 -port=2302 -maxmem=2047 -noCB -exThreads=1 -filePatching -malloc=tbb4malloc_bi -profiles=config -config=config\server.cfg -cfg=config\basic.cfg -name=arma3 -autoinit -loadMissionToMemory
Original output filename: Arma3Retail_Server
Exe timestamp: 2017/06/27 16:57:06
Current time: 2017/07/03 15:57:10
Type: Public
Build: Stable
Version: 1.72.142223
Allocator: C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\Dll\tbb4malloc_bi.dll [2017.0.0.0] [2017.0.0.0]
PhysMem: 64 GiB, VirtMem : 4.0 GiB, AvailPhys : 24 GiB, AvailVirt : 3.9 GiB, AvailPage : 82 GiB
=====================================================================
15:57:10 SteamAPI initialization failed. Steam features won't be accessible!
15:57:13 Source set
15:57:13 Initializing stats manager.
15:57:13 Stats config disabled.
15:57:13 sessionID: 09f860273a834f3f5ecaef6be1181854cb8e8b9b
15:57:22 Unsupported language English in stringtable
15:57:22 Unsupported language English in stringtable
15:57:22 Unsupported language English in stringtable
15:57:23 Updating base class RscShortcutButton->RscButton, by a3\editor_f\config.bin/RscDisplayEditObject/Controls/B_OK/ (original bin\config.bin)
15:57:25 =======================
15:57:25
15:57:25 ============================================================================================= List of mods ===============================================================================================
15:57:25 modsReadOnly = true
15:57:25 safeModsActivated = false
15:57:25 customMods = true
15:57:25 hash = '73C9806971378B2997B02775C8C12985EBDD84CA'
15:57:25 hashShort = 'f416d6c1'
15:57:25 name | modDir | default | origin | hash | hashShort | fullPath
15:57:25 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15:57:25 @life_server | @life_server | false | GAME DIR | afb97906f018513d0bc2b91389722d714eef1c06 | 2eb05d2e | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\@life_server
15:57:25 Arma 3 DLC Bundle 2 | dlcbundle2 | true | NOT FOUND | | |
15:57:25 Arma 3 DLC Bundle 1 | dlcbundle | true | NOT FOUND | | |
15:57:25 Arma 3 Malden | argo | true | GAME DIR | 1467880ed0859d9c98a1365ff7d6b348cc125a4a | 160cd404 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\argo
15:57:25 Arma 3 Jets | jets | true | GAME DIR | 46f0ce68cbee4681f849862384dfd5a72dd9c866 | a8106879 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\jets
15:57:25 Arma 3 Apex | expansion | true | GAME DIR | c3c5717839b285929d80207a5e799c1fe17df9d5 | 991f2b52 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\expansion
15:57:25 Arma 3 Marksmen | mark | true | GAME DIR | 6cac2f2826858f6e0465231b85f516d62a6bf206 | b12d3964 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\mark
15:57:25 Arma 3 Helicopters | heli | true | GAME DIR | c791e8eeb5215c310157079b58e139e8cd4c35bc | dc0cc853 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\heli
15:57:25 Arma 3 Karts | kart | true | GAME DIR | 926d84ac986545057a87c19fadd48c018d47f316 | c503aef5 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\kart
15:57:25 Arma 3 Zeus | curator | true | GAME DIR | aa784108badc7eefa5ce4ce8ab7f9f33ec52ec53 | 7695ced7 | C:\SERVICES\ni1087585_1_SHARE\ftproot\arma3\curator
15:57:25 Arma 3 | A3 | true | NOT FOUND | | |
15:57:25 ==========================================================================================================================================================================================================
15:57:25 InitSound ...
15:57:25 InitSound - complete
15:57:25 PhysX3 SDK Init started ...
15:57:25 PhysX3 SDK Init ended.
15:57:29 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
a3_characters_f
15:57:29 Loading movesType CfgGesturesMale
15:57:29 MovesType CfgGesturesMale load time 106 ms
15:57:29 Loading movesType CfgMovesMaleSdr
15:57:35 MovesType CfgMovesMaleSdr load time 6466 ms
15:57:37 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303
15:57:37 Steam AppId from steam_appid.txt: 107410
15:57:37 Unsupported language English in stringtable
15:57:37 Unsupported language English in stringtable
15:57:40 Mission Altis_Life.Altis: Number of roles (120) is different from 'description.ext::Header::maxPlayer' (115)
15:57:40 Connected to Steam servers
15:57:41 Starting mission:
15:57:41 Mission file: Altis_Life
15:57:41 Mission world: Altis
15:57:41 Mission directory: mpmissions\Altis_Life.Altis\
15:57:47 Strange convex component202 in a3\structures_f\households\house_small01\d_house_small_01_v1_f.p3d:geometryView
15:57:47 Strange convex component203 in a3\structures_f\households\house_small01\d_house_small_01_v1_f.p3d:geometryView
15:57:47 Strange convex component145 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView
15:57:47 Strange convex component149 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView
15:57:48 Strange convex component65 in a3\rocks_f\sharp\sharprock_wallh.p3d:geometryFire
15:57:51 Strange convex component06 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire
15:57:51 Strange convex component337 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire
15:57:51 Strange convex component353 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire
15:57:51 Strange convex component378 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire
15:57:51 Strange convex component05 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire
15:57:51 Strange convex component74 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire
15:57:51 Strange convex component202 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire
15:57:51 Strange convex component391 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire
15:58:05 No speaker given for Kirabo Ibori
15:58:05 No speaker given for Hamidi Ngige
15:58:05 No speaker given for William Leahy
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 1c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 2c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 3c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 4c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 5c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 6c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 7c not found
15:58:05 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 8c not found
15:58:05 Wrong geometry convex component mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Convex component number 3. not found
15:58:06 soldier[B_diver_F]:Some of magazines weren't stored in soldier Vest or Uniform?
15:58:07 Strange convex component116 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire
15:58:07 Strange convex component117 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire
15:58:07 Strange convex component118 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire
15:58:07 Strange convex component119 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire
15:58:08 Error: Object(2 : 3652) not found
15:58:08 Error: Object(2 : 3656) not found
15:58:08 Error: Object(2 : 3658) not found
15:58:08 Error: Object(2 : 3660) not found
15:58:08 Error: Object(2 : 3662) not found
15:58:08 Error: Object(2 : 3664) not found
15:58:08 Error: Object(2 : 3666) not found
15:58:08 Error: Object(2 : 3668) not found
15:58:08 Error: Object(2 : 3670) not found
15:58:08 Error: Object(2 : 3672) not found
15:58:08 Error: Object(2 : 3674) not found
15:58:08 Error: Object(2 : 3676) not found
15:58:08 Error: Object(2 : 3678) not found
15:58:08 Error: Object(2 : 3680) not found
15:58:08 Error: Object(2 : 3684) not found
15:58:08 Error: Object(2 : 3686) not found
15:58:08 Error: Object(2 : 3688) not found
15:58:08 Error: Object(2 : 3690) not found
15:58:08 Error: Object(2 : 3692) not found
15:58:08 Error: Object(2 : 3694) not found
15:58:08 Error: Object(2 : 3696) not found
15:58:08 Error: Object(2 : 3698) not found
15:58:08 Error: Object(2 : 3700) not found
15:58:08 Error: Object(2 : 3702) not found
15:58:08 Error: Object(2 : 3704) not found
15:58:08 Error: Object(2 : 3706) not found
15:58:08 Error: Object(2 : 3708) not found
15:58:08 Error: Object(2 : 3710) not found
15:58:08 Error: Object(2 : 3712) not found
15:58:08 Error: Object(2 : 3714) not found
15:58:08 Error: Object(2 : 3716) not found
15:58:08 Error: Object(2 : 3718) not found
15:58:08 Error: Object(2 : 3720) not found
15:58:08 Error: Object(2 : 3722) not found
15:58:08 Error: Object(2 : 3724) not found
15:58:08 Error: Object(2 : 3726) not found
15:58:08 Error: Object(2 : 3728) not found
15:58:08 Error: Object(2 : 3730) not found
15:58:08 Error: Object(2 : 3732) not found
15:58:08 Error: Object(2 : 3734) not found
15:58:08 Error: Object(2 : 3736) not found
15:58:08 Error: Object(2 : 3738) not found
15:58:08 Error: Object(2 : 3740) not found
15:58:08 Error: Object(2 : 3760) not found
15:58:08 Error: Object(2 : 3762) not found
15:58:08 Error: Object(2 : 3764) not found
15:58:08 Error: Object(2 : 3772) not found
15:58:08 Error: Object(2 : 3774) not found
15:58:08 Error: Object(2 : 3776) not found
15:58:08 Error: Object(2 : 3778) not found
15:58:08 Error: Object(2 : 3780) not found
15:58:08 Error: Object(2 : 3782) not found
15:58:08 Error: Object(2 : 3784) not found
15:58:08 Error: Object(2 : 3786) not found
15:58:08 Error: Object(2 : 3790) not found
15:58:08 Error: Object(2 : 3792) not found
15:58:08 Error: Object(2 : 3794) not found
15:58:08 Error: Object(2 : 3796) not found
15:58:08 Error: Object(2 : 3798) not found
15:58:08 Error: Object(2 : 3800) not found
15:58:08 Error: Object(2 : 3808) not found
15:58:08 Error: Object(2 : 3810) not found
15:58:08 Error: Object(2 : 3818) not found
15:58:08 Error: Object(2 : 3820) not found
15:58:08 Error: Object(2 : 3822) not found
15:58:08 Error: Object(2 : 3824) not found
15:58:08 Error: Object(2 : 3826) not found
15:58:08 Error: Object(2 : 3834) not found
15:58:08 Error: Object(2 : 3836) not found
15:58:08 Error: Object(2 : 3838) not found
15:58:08 Error: Object(2 : 3840) not found
15:58:08 Error: Object(2 : 3849) not found
15:58:08 Error: Object(2 : 3851) not found
15:58:08 Error: Object(2 : 3853) not found
15:58:08 Error: Object(2 : 3855) not found
15:58:08 Error: Object(2 : 3857) not found
15:58:08 Error: Object(2 : 3859) not found
15:58:08 Error: Object(2 : 3861) not found
15:58:08 Error: Object(2 : 3863) not found
15:58:08 Error: Object(2 : 3893) not found
15:58:08 Error: Object(2 : 3895) not found
15:58:08 Error: Object(2 : 3897) not found
15:58:08 Error: Object(2 : 3899) not found
15:58:08 Error: Object(2 : 3903) not found
15:58:08 Error: Object(2 : 3908) not found
15:58:08 Error: Object(2 : 3910) not found
15:58:08 Error: Object(2 : 3912) not found
15:58:08 Error: Object(2 : 3914) not found
15:58:08 Error: Object(2 : 3916) not found
15:58:08 Error: Object(2 : 3930) not found
15:58:08 Error: Object(2 : 3941) not found
15:58:08 Error: Object(2 : 3963) not found
15:58:08 Error: Object(2 : 3967) not found
15:58:08 Error: Object(2 : 3971) not found
15:58:08 Error: Object(2 : 3975) not found
15:58:08 Error: Object(2 : 3979) not found
15:58:08 Error: Object(2 : 3983) not found
15:58:08 Error: Object(2 : 3993) not found
15:58:08 Error: Object(2 : 3995) not found
15:58:08 Error: Object(2 : 3997) not found
15:58:08 Error: Object(2 : 4014) not found
15:58:08 Error: Object(2 : 4020) not found
15:58:08 Error: Object(2 : 4022) not found
15:58:08 Error: Object(2 : 4071) not found
15:58:08 Error: Object(2 : 4078) not found
15:58:08 Error: Object(2 : 4082) not found
15:58:08 Error: Object(2 : 4089) not found
15:58:08 Error: Object(2 : 4132) not found
15:58:08 Error: Object(2 : 4134) not found
15:58:08 Error: Object(2 : 4136) not found
15:58:08 c:\w\stable\futura\lib\network\networkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!
15:58:08 Mission id: a259330433f7bff36281e46396e26addc1357b12
15:58:08 Attempt to override final function - bis_fnc_storeparamsvalues_data
15:58:08 CallExtension loaded: extDB2 (.\extDB2.dll) [
]
15:58:08 EXTDB:: LOCK SUCCESSFULL
15:58:08 Strange convex component322 in a3\structures_f\research\dome_big_f.p3d:geometryFire
15:58:08 Strange convex component327 in a3\structures_f\research\dome_big_f.p3d:geometryFire
15:59:00 NetServer::SendMsg: cannot find channel #1983300967, users.card=0
15:59:00 NetServer: users.get failed when sending to 1983300967
15:59:00 Message not sent - error 0, message ID = ffffffff, to 1983300967 (Light Nordens)
15:59:00 NetServer::SendMsg: cannot find channel #1983300967, users.card=0
15:59:00 NetServer: users.get failed when sending to 1983300967
15:59:00 Message not sent - error 0, message ID = ffffffff, to 1983300967 (Light Nordens)
15:59:00 NetServer::SendMsg: cannot find channel #1983300967, users.card=0
15:59:00 NetServer: users.get failed when sending to 1983300967
15:59:00 Message not sent - error 0, message ID = ffffffff, to 1983300967 (Light Nordens)
16:01:05 Unaccessible
16:01:05 Server: Object 2:4155 not found (message Type_93)
16:01:10 Server: Object 2:4158 not found (message Type_93)
16:01:12 Server: Object 2:4175 not found (message Type_121)
16:01:14 Server: Object 2:4156 not found (message Type_93)
16:01:27 Server: Object 2:4169 not found (message Type_93)
16:02:47 Server: Object 2:4169 not found (message Type_93)
16:02:49 Unaccessible
16:02:50 Server: Object 2:4175 not found (message Type_93)
16:02:52 Server: Object 2:4169 not found (message Type_121)
16:02:57 Server: Object 2:4155 not found (message Type_121)
16:03:05 Server: Object 2:4155 not found (message Type_93)
16:03:10 Server: Object 2:4158 not found (message Type_121)
16:03:10 Server: Object 2:4158 not found (message Type_93)
16:03:11 Server: Object 2:4156 not found (message Type_121)
16:03:14 Server: Object 2:4156 not found (message Type_93)
16:03:26 O_T_LSV_02_unarmed_F: Unarmed_Main_Turret_hide - unknown animation source turrethide
16:03:26 O_T_LSV_02_unarmed_F: Unarmed_Doors_Hide - unknown animation source doorshide
16:03:26 O_T_LSV_02_unarmed_F: MainTurret - unknown animation source mainturret
16:03:26 O_T_LSV_02_unarmed_F: MainGun - unknown animation source maingun
16:03:27 Server: Object 2:4169 not found (message Type_93)
16:03:30 Server: Object 2:4175 not found (message Type_93)
16:03:36 Client: Remote object 5:13 not found
16:03:38 Server: Object 2:4175 not found (message Type_121)
16:03:39 Warning: Cleanup player - person 2:4921 not found
16:03:42 Server: Object 2:4156 not found (message Type_161)
16:03:45 Warning: Cleanup player - person 2:4921 not found
16:03:45 Server: Object 2:4155 not found (message Type_93)
16:03:50 Server: Object 2:4158 not found (message Type_93)
16:03:51 Server: Object 2:4169 not found (message Type_161)
16:03:54 Server: Object 2:4156 not found (message Type_93)
16:04:05 Server: Object 2:4169 not found (message Type_121)
16:04:07 Server: Object 2:4169 not found (message Type_93)
16:04:10 Server: Object 2:4175 not found (message Type_93)
16:04:11 Server: Object 2:4155 not found (message Type_121)
16:04:23 Server: Object 2:4158 not found (message Type_121)
16:04:25 Server: Object 2:4156 not found (message Type_121)
16:04:25 Server: Object 2:4155 not found (message Type_93)
16:04:30 Server: Object 2:4158 not found (message Type_93)
16:04:34 Server: Object 2:4156 not found (message Type_93)
16:04:47 Server: Object 2:4169 not found (message Type_93)
16:04:50 Server: Object 2:4175 not found (message Type_93)
16:04:51 Server: Object 2:4155 not found (message Type_161)
16:04:51 Server: Object 2:4175 not found (message Type_121)
16:04:52 Client: Remote object 6:13 not found
16:04:54 Warning: Cleanup player - person 2:4927 not found
16:04:56 Server: Object 5:16 not found (message Type_93)
16:05:03 Unaccessible
16:05:04 Error: Object(6 : 38) not found
16:05:05 Server: Object 2:4155 not found (message Type_93)
16:05:08 Strange convex component01 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component02 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component13 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component129 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component131 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component135 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component309 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Strange convex component315 in a3\rocks_f\sharp\sharprock_wallv.p3d:geometryFire
16:05:08 Error: Object(6 : 41) not found
16:05:10 Server: Object 2:4158 not found (message Type_93)
16:05:14 Server: Object 2:4156 not found (message Type_93)
16:05:18 Server: Object 2:4169 not found (message Type_121)
16:06:16 Server: Object 5:16 not found (message Type_93)
16:06:16 Server: Object 5:12 not found (message Type_93)
16:06:20 Warning: Cleanup player - person 2:4943 not found
16:06:21 Warning: Cleanup player - person 2:4943 not found
16:06:25 Server: Object 2:4155 not found (message Type_93)
16:06:30 Server: Object 2:4158 not found (message Type_93)
16:06:31 Server: Object 2:4169 not found (message Type_121)
16:06:34 Server: Object 2:4156 not found (message Type_93)
16:06:37 Server: Object 2:4155 not found (message Type_121)
Alles anzeigen
bevor ich hier wieder falsche Angaben schreibe, wäre meine Empfehlung das Backup einzuspielen und anschliessend nach diesem Tut die Einrichtung noch einmal vorzunehmen. Andernfalls kann man auch eines der anderen Tuts nehmen aber das ist Geschmackssache.
Fehler besteht aber auch in der 4.4 also wird es wahrscheinlich nicht daran liegen.
Die einzigen Änderungen waren glaube ich in der fn_emergencyLights.sqf ist, aber wie gesagt nicht die schönste Lösung. Immerhin funktioniert es jetzt für beide Fraktionen
C: fn_emergencyLights.sqf Alles anzeigen/* File: fn_emergencyLights.sqf Author: Vincent H. aka AGPHeaddikilla aka Yoghurt aka Yogurette Link: http://forums.bistudio.com/showthread.php?157474-Offroad-Police-sirens-lights-and-underglow Original Author: mindstorm, modified by Adanteh Description: Adds the light effect to cop vehicles, specifically the offroad. License: MIT License Copyright (c) 2016 Vincent Heins (http://www.allgameplay.de/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ private ["_vehicle", "_sendUnit", "_engineTimeout", "_defaultAttenuation", "_playerSide", "_classname", "_lights", "_lightObjects"]; _vehicle = [_this, 0, ObjNull, [ObjNull]] call BIS_fnc_param; _sendUnit = [_this, 1, ObjNull, [ObjNull]] call BIS_fnc_param; if (isNull _vehicle || isNull _sendUnit) exitWith {}; _engineTimeout = getNumber(missionConfigFile >> "emergencyLightsConfig" >> "engineTimeout"); _defaultAttenuation = getArray(missionConfigFile >> "emergencyLightsConfig" >> "defaultAttenuation"); _playerSide = toLower (str side _sendUnit); if(_playerside != "independent") then { if(_playerSide == "west") exitWith {}; _playerside = "independent" }; _classname = typeOf _vehicle; _lightObjects = []; { private ["_status", "_color", "_ambientColor", "_brightnessMinimum", "_brightnessMaximum", "_position", "_attenuation", "_phaseTime", "_timeout"]; _status = getNumber(_x >> "status"); _color = getArray(_x >> "color"); _ambientColor = getArray(_x >> "ambientColor"); _brightnessMinimum = getNumber(_x >> "brightnessMinimum"); _brightnessMaximum = getNumber(_x >> "brightnessMaximum"); _position = getArray(_x >> "position"); _attenuation = getArray(_x >> "attenuation"); _phaseTime = getNumber(_x >> "phaseTime"); _timeout = getNumber(_x >> "timeout"); _light = "#lightpoint" createVehicleLocal getPos _vehicle; _light setLightColor _color; _light setLightAmbient _ambientColor; _light lightAttachObject [_vehicle, _position]; if (_status == 1) then { _light setLightBrightness _brightnessMaximum; } else { _light setLightBrightness _brightnessMinimum; }; if ((count _attenuation) <= 0) then { _light setLightAttenuation _defaultAttenuation; } else { _light setLightAttenuation _attenuation; }; _light setLightIntensity 10; _light setLightFlareSize 0.38; _light setLightFlareMaxDistance 150; _light setLightUseFlare true; _light setLightDayLight true; _lightObjects pushBack [_light, _status, ([[_phaseTime], 0, nil, [0]] call BIS_fnc_param), time, ([[_timeout], 0, nil, [0]] call BIS_fnc_param), _brightnessMinimum, _brightnessMaximum]; } forEach ("true" configClasses (missionConfigFile >> "emergencyLightsConfig" >> _playerSide >> _classname)); if ((count _lightObjects) <= 0) exitWith {}; if (_sendUnit == player) then { vehicle player setVariable ["lights", true, true]; _players = []; { if (player != _x) then { _players pushBack _x; }; } forEach playableUnits; [vehicle player, player] remoteExec ["life_fnc_emergencyLights", _players]; }; _lightObj = ObjNull; while { (alive _vehicle) } do { if(!(_vehicle getVariable ["lights", false])) exitWith {}; { private ["_lightObj", "_time", "_timeout", "_oldTime", "_status", "_brightnessMinimum", "_brightnessMaximum", "_extra"]; _lightObj = [_x, 0, ObjNull, [ObjNull]] call BIS_fnc_param; _time = [_x, 2, .2, [0]] call BIS_fnc_param; _timeout = [_x, 4, 0, [0]] call BIS_fnc_param; _oldTime = ([_x, 3, time, [0]] call BIS_fnc_param) + _timeout; _status = [_x, 1, 0, [0]] call BIS_fnc_param; _brightnessMinimum = [_x, 5, 0, [0]] call BIS_fnc_param; _brightnessMaximum = [_x, 6, 0, [0]] call BIS_fnc_param; _extra = 0; if (!isEngineOn _vehicle) then { _extra = _engineTimeout; }; if (_time == 0) then { if (isEngineOn _vehicle) then { _time = (random [0.1, 0.2, 0.3]); } else { _time = (random [0.1, 0.2 + 0.2, 0.3 + 0.2]); }; }; if ((time - _oldTime) > (_time + _extra)) then { if (_status == 0) then { _lightObj setLightBrightness _brightnessMinimum; _x set [1, 1]; } else { _lightObj setLightBrightness _brightnessMaximum; _x set [1, 0]; }; _x set [3, time]; sleep (_timeout + _extra); }; } forEach _lightObjects; sleep 0.1; }; { deleteVehicle (_x select 0); } forEach _lightObjects;
Ich habs mal eingefügt und mit der Korrektur von SirFluffyVonKitten getestet. Folgende Probleme tauchten bei mir auf:
-Blaulicht ist sowohl von Independent als auch von West und Civs verwendbar.
-Ein neu gejointer Spieler sieht das Blaulicht, welches vor seinem join angeschalten wurde, nicht. Wenn es aus und wieder angemacht wird dann schon.
Für mich ist das Skript leider so nicht nutzbar. Hat jemand noch Ideen? Ich hab leider keine mehr obwohl ich das Skript wirklich genial finde!