Coca Cola Weihnachtstruck
Hallo,
ich poste hier mal einfach den Coca Cola Weihnachtstruck b.z.w. die Beleuchtung die ich gemacht habe
Die idee dazu stammt nicht von mir, habe das ganze bei ZoGGaZ auf YouTube gesehen, und fand es lustig und wollte das auch unbedingt haben
Leider ist meins nicht so gut umgesetzt. Aber es erfühlt seine Funktion.
(Personen die auf den Server verbinden nachdem ihr die Beleuchtung gestartet habt sehen die Beleuchtung nicht mehr)
Einfach als Fahrer in Zamak rein und die Start.sqf starten
Hier die 3 Dateien die ich dafür erstellt habe:
Code: xmasMP.sqf
private["_veh"];
_veh = _this select 0;
_veh setVariable["LichterV",TRUE,TRUE];
[[[_veh],"xmasStart.sqf"],"BIS_fnc_execVM",true,false] call BIS_fnc_MP;
Code: xmasStart.sqf
/*
///////////////////////////////////////
///Ask for using [email protected]///
///////////////////////////////////////
Author: Jonas/xjoniassx für MineFactory Altis Life
*/
private ["_veh","_lightYellow","_Lightpoint","_light"];
_veh = _this select 0;
if(isNil "_veh" OR isNull _veh OR !(_veh getVariable "LichterV")) exitWith {};
_brightnessLow = 0;
_brightnessHigh = 60;
_attenuation = [0.001, 3000, 0, 400000];
_lightYellow = [255, 255, 0];
_Lightpoint =
{
_isLight = _this select 0;
_color = _this select 1;
_position = _this select 2;
_light = "#lightpoint" createVehicleLocal getPos _veh;
_light setLightBrightness 0;
_light setLightAmbient [0,0,0];
_light setLightAttenuation _attenuation;
_light setLightIntensity 1000;
_light setLightFlareSize 1;
_light setLightFlareMaxDistance 150;
_light setLightUseFlare true;
_light setLightDayLight true;
switch (_color) do
{
case "yellow": { _light setLightColor _lightYellow; };
};
_light attachTo [_veh, _position];
};
//Untere Reihe R
[false, "yellow", [1.35, 1.15, -0.8]] call _Lightpoint;
[false, "yellow", [1.35, -0.05, -0.8]] call _Lightpoint;
[false, "yellow", [1.35, -1.3, -0.8]] call _Lightpoint;
[false, "yellow", [1.35, -2.5, -0.8]] call _Lightpoint;
[false, "yellow", [1.35, -3.7, -0.8]] call _Lightpoint;
sleep 1;
//Mitte R
[false, "yellow", [1.35, 1.15, -0.05]] call _Lightpoint;
[false, "yellow", [1.35, -3.7, -0.05]] call _Lightpoint;
//Obere Reihe R
sleep 1;
[false, "yellow", [1.35, -3.7, 0.5]] call _Lightpoint;
[false, "yellow", [1.35, -2.5, 0.5]] call _Lightpoint;
[false, "yellow", [1.35, -1.3, 0.5]] call _Lightpoint;
[false, "yellow", [1.35, -0.05, 0.5]] call _Lightpoint;
[false, "yellow", [1.35, 1.15, 0.5]] call _Lightpoint;
sleep 1;
//Untere Reihe L
[false, "yellow", [-1.35, 1.15, -0.8]] call _Lightpoint;
[false, "yellow", [-1.35, -0.05, -0.8]] call _Lightpoint;
[false, "yellow", [-1.35, -1.3, -0.8]] call _Lightpoint;
[false, "yellow", [-1.35, -2.5, -0.8]] call _Lightpoint;
[false, "yellow", [-1.35, -3.7, -0.8]] call _Lightpoint;
//Mitte L
sleep 1;
[false, "yellow", [-1.35, 1.15, -0.05]] call _Lightpoint;
[false, "yellow", [-1.35, -3.7, -0.05]] call _Lightpoint;
//Obere Reihe L
sleep 1;
[false, "yellow", [-1.35, -3.7, 0.5]] call _Lightpoint;
[false, "yellow", [-1.35, -2.5, 0.5]] call _Lightpoint;
[false, "yellow", [-1.35, -1.3, 0.5]] call _Lightpoint;
[false, "yellow", [-1.35, -0.05, 0.5]] call _Lightpoint;
[false, "yellow", [-1.35, 1.15, 0.5]] call _Lightpoint;
sleep 1;
//Führer Haus
[false, "yellow", [-1.05, 1.91, 0.5]] call _Lightpoint;
[false, "yellow", [1.05, 1.91, 0.5]] call _Lightpoint;
[false, "yellow", [0.95, 3.1, 0.5]] call _Lightpoint;
[false, "yellow", [-0.95, 3.1, 0.5]] call _Lightpoint;
[false, "yellow", [-1.1, 2, -0.7]] call _Lightpoint;
[false, "yellow", [1.1, 2, -0.7]] call _Lightpoint;
[false, "yellow", [1.15, 3.58, -0.6]] call _Lightpoint;
[false, "yellow", [-1.15, 3.58, -0.6]] call _Lightpoint;
Alles anzeigen
Hier noch zwei Bilder: