DayZ
dbo_cars
Can´t compile misson Script
can´t find file: setupparams.c

where to put the mission folder? i put i where the init.c was. (mpmissions)
< >
Showing 1-1 of 1 comments
๖ۣۜEvo™ 21 Feb, 2019 @ 1:10am 
Hi,

Den Script Ordner im Mission Ordner packst du da hin wo die init.c liegt .

In meinem Fall -> mpmissions/dayzOffline.chernarusplus

In deiner init.c müsste void main dann in etwa so aussehen ->

Wichtig ist das die Includes richtig angegeben sind !


#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\scripts\\setupparams.c" #include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\scripts\\setupvehicle.c" void main() { //INIT WEATHER BEFORE ECONOMY INIT------------------------ Weather weather = g_Game.GetWeather(); weather.MissionWeather(false); // false = use weather controller from Weather.c weather.GetOvercast().Set( Math.RandomFloatInclusive(0.4, 0.6), 1, 0); weather.GetRain().Set( 0, 0, 1); weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0); weather.GetRain().SetLimits( 0, 0.1 ); //INIT ECONOMY-------------------------------------- Hive ce = CreateHive(); if ( ce ) ce.InitOffline(); //DATE RESET AFTER ECONOMY INIT------------------------- int year; int month; int day; int hour; int minute; GetGame().GetWorld().GetDate(year, month, day, hour, minute); if (((month <= 9) && (day < 20)) || ((month >= 10) && (day > 20))) { month = 9; day = 20; GetGame().GetWorld().SetDate(year, month, day, hour, minute); } //-----------------------X-mas array<vector> treePositions = { "6560.29 0 2462.12", "1652.66 0 14230.71", "3801.06 0 8847.76", "9442.32 0 8829.03", "7903.16 0 12576.52", "11617.75 0 14663.98", "12830.08 0 10115.18", "11221.94 0 12225.89", "3471.93 0 12988.33", "13933.42 0 13228.44", "12022.64 0 9082.89", "10468.54 0 2373.16", "2725.48 0 5288.75", }; Object treeEntity; for ( int i=0; i < treePositions.Count(); i++ ) { vector treePos = treePositions;
float posY = GetGame().SurfaceY(treePos[0], treePos[2]);
treeEntity = GetGame().CreateObject("ChristmasTree", Vector( treePos[0], posY, treePos[2]), false);

}
Entity playerEnt = GetGame().CreatePlayer(NULL, "SurvivorM_Elias", "250 0 250", 0, "NONE");
PlayerBase player = (PlayerBase) playerEnt;
GetGame().SelectPlayer(NULL, player);

TStringArray jeepcomponents = { "jeepWheel","jeepWheel","jeepWheel","jeepWheel","jeepWheel","jeepHood","CarBattery","CarRadiator","EngineBelt","SparkPlug","HeadlightH7","HeadlightH7"};
CreateVehicle dbojeepA = new CreateVehicle ("dbojeepA","253 0 253");
dbojeepA.addVehicleFuel(100);
dbojeepA.addVehicleOil(1000);
dbojeepA.addVehicleWater(1000);
dbojeepA.addVehicleBrake(1000);
dbojeepA.addVehicleComponents(jeepcomponents);
}


Falls du noch Hilfe brachst schreib mir einfach bei Steam !
Last edited by ๖ۣۜEvo™; 21 Feb, 2019 @ 1:13am
< >
Showing 1-1 of 1 comments
Per page: 1530 50