DayZ
dbo_cars
DeanosBeano  [開發人員] 2018 年 12 月 15 日 上午 10:11
Spawn codes
New Spawn COde ****
I Spawn with this code

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


empty jeep

Car oCar = Car.Cast( GetGame().CreateObject( "dbojeep", "5091.625977 9.999998 4512.878417", false, false ) );
最後修改者:DeanosBeano; 2019 年 1 月 15 日 上午 6:42
< >
目前顯示第 1-15 則留言,共 18
mohak (Mitch) 2018 年 12 月 16 日 下午 12:52 
Where i put these codes?
DeanosBeano  [開發人員] 2018 年 12 月 16 日 下午 9:52 
In your mission init.c inside void main
laverians1 2019 年 1 月 14 日 下午 7:47 
I have tried this and I get an unexpected statement error
DeanosBeano  [開發人員] 2019 年 1 月 15 日 上午 6:25 
really sorry its missing something in the mission file , i am going to reupload now with new spawn code and in the download is the Mission files , change empty.terrain to empty.chernarusplus or empty.whatever terrain you wish to play it
DeanosBeano  [開發人員] 2019 年 1 月 15 日 上午 6:43 
Important new Spawn Code for misssion makers seee Firt post and files in Download
laverians1 2019 年 1 月 15 日 下午 8:30 
@DeanosBeano I had to change your spawn code a bit to fit my file locations.
#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\empty.chernarusplus\\scripts\\setupparams.c"
#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\empty.chernarusplus\\scripts\\setupvehicle.c"
DeanosBeano  [開發人員] 2019 年 1 月 16 日 上午 12:30 
Hi yes this is explained in the post above yours . Thanks for putting the full line for cherno
GoFireUp 2019 年 1 月 25 日 下午 10:57 
Hi! Nice work! But how to make this spawn like other vehicles with missing parts, so players could assemble Jeeps?
DeanosBeano  [開發人員] 2019 年 1 月 26 日 上午 2:44 
erm in first post
empty jeep

Car oCar = Car.Cast( GetGame().CreateObject( "dbojeep", "5091.625977 9.999998 4512.878417", false, false ) );
GoFireUp 2019 年 2 月 13 日 上午 12:21 
init.c inside void main is not what I am asking about. the idea is that this file spawns things on player spawn. and that is NOT what we need here. We are looking for vehicles to add the the server and trying to find an option to spawn them without admin involvement. Like we have ADA now. We do not need to add it to init.c. And it is not there. The main reason - we have RP server and people chrash their vehicles from time to time. And if using your way of spawn we will run out of these types of vehicles very fast, or we'll have te respawn them by our self again and again. And that is not the option, because of the time shortage. We have so many mods on our server and only mods updates take a lot of time. Also events and so on. So, we want to play on our server, not just sit and work on it. That is why I asked for the way to add your vehicles to the automatic spawn, not just add them to the server.
DeanosBeano  [開發人員] 2019 年 2 月 13 日 上午 12:53 
all files needed to spawn are in the downlaod , including cots .com,trader and offiline . this is updated with new text by proggers
GoFireUp 2019 年 2 月 13 日 上午 1:37 
Are you going to provide instruction on how to add them to spawn please as this is first time for me adding new vehicles to the server. Thank you very much!
DeanosBeano  [開發人員] 2019 年 2 月 13 日 上午 2:21 
if you goto the discord channel and ask in online mission editing im sure people will help
channel is in the description
server stuff aint my bag
GoFireUp 2019 年 2 月 13 日 上午 4:33 
looks like I understood how to do it, lol. do I got this right: the 4 jeeps in the files are as an example and you have all 7 shown in the description?
DeanosBeano  [開發人員] 2019 年 2 月 13 日 上午 5:51 
all classes are in description yes , only jeeps for now but several types
< >
目前顯示第 1-15 則留言,共 18
每頁顯示: 1530 50