Get Boats and Jets working.

Newbie Spellweaver
Joined
Dec 19, 2014
Messages
41
Reaction score
7
Hey guys i'm using the DayZ files from this thread http://forum.ragezone.com/f866/dayz-standalone-0-53-126-a-1049328/#post8329684

Now i will show you how to get Boats and Jets working on ur server.

First of all make a backup from MPMissions folder.
next step: go to -->MPMissions -->dayzea.ChernarusPlus and open init.sqf

Find the lines //CAR SPAWN
[] execVM (DZ_DIR_S + "Car2.sqf");
[] execVM (DZ_DIR_S + "SpawnHeli.sqf");

And add the following

[] execVM (DZ_DIR_S + "Car.sqf");
[] execVM (DZ_DIR_S + "Ships.sqf");
[] execVM (DZ_DIR_S + "Air.sqf");

now it looks

//CAR SPAWN
[] execVM (DZ_DIR_S + "Car2.sqf");
[] execVM (DZ_DIR_S + "SpawnHeli.sqf");
[] execVM (DZ_DIR_S + "Car.sqf");
[] execVM (DZ_DIR_S + "Ships.sqf");
[] execVM (DZ_DIR_S + "Air.sqf");

Close init.sqf with save and go back to MPMissions folder.
now click on "Pack" (the batch file)
Click yes to overwrite.

Start your server and be happy ;)

You can find Boats on coast in the water
Jets are on the two big airfields (su34 type)
stay close to the Rockets on left side to get in.

If u know how to activate the landing tires let me know it ;)
because i crashed at landing (no tires out)

Sorry for my bad english i'm a german guy :)
 
Oh thank you danisimus :)

what do you mean with:

Class air:

sacsu33
F35B
Su34
MV22
C130J



Class ships:

PBX
Zodiac
RHIB

I have only Zodiac boat and su34 jet
no other in spawn list
 
Hey guys i'm using the DayZ files from this thread http://forum.ragezone.com/f866/dayz-standalone-0-53-126-a-1049328/#post8329684

Now i will show you how to get Boats and Jets working on ur server.

First of all make a backup from MPMissions folder.
next step: go to -->MPMissions -->dayzea.ChernarusPlus and open init.sqf

Find the lines //CAR SPAWN
[] execVM (DZ_DIR_S + "Car2.sqf");
[] execVM (DZ_DIR_S + "SpawnHeli.sqf");

And add the following

[] execVM (DZ_DIR_S + "Car.sqf");
[] execVM (DZ_DIR_S + "Ships.sqf");
[] execVM (DZ_DIR_S + "Air.sqf");

now it looks

//CAR SPAWN
[] execVM (DZ_DIR_S + "Car2.sqf");
[] execVM (DZ_DIR_S + "SpawnHeli.sqf");
[] execVM (DZ_DIR_S + "Car.sqf");
[] execVM (DZ_DIR_S + "Ships.sqf");
[] execVM (DZ_DIR_S + "Air.sqf");

Close init.sqf with save and go back to MPMissions folder.
now click on "Pack" (the batch file)
Click yes to overwrite.

Start your server and be happy ;)

You can find Boats on coast in the water
Jets are on the two big airfields (su34 type)
stay close to the Rockets on left side to get in.

If u know how to activate the landing tires let me know it ;)
because i crashed at landing (no tires out)

Sorry for my bad english i'm a german guy :)

Thank you!! It worked!! =)
Do you know any way to spawn random type of Ships and Jets?
 
You can change your SpawnHeli.sqf and add some airplanes like C130J or MV22

for boats you have to change ships.sqf you can add PBX and RHIB
 
Yes, I know that, but I was asking if there is any way to make the type of ship and airplane random..

I tried to make a random selection with this


Code:
activateAddons ["water"];

_min = 1;
_diff = 2; 
_ShipSelect = round (_min + (random _diff));
_ShipType = "";

for [{_i=0}, {_i<22}, {_i=_i+1}] do
{
[INDENT]switch (_ShipSelect) do[/INDENT]
[INDENT]{[/INDENT]
[INDENT][INDENT]case 1: { _ShipType = "RHIB"; };[/INDENT][/INDENT]
[INDENT][INDENT]case 2: { _ShipType = "PBX"; };[/INDENT][/INDENT]
[INDENT][INDENT]case 3: { _ShipType = "Zodiac"; };[/INDENT][/INDENT]
[INDENT]};[/INDENT]

[INDENT]switch (_i) do[/INDENT]
[INDENT]{[/INDENT]
[INDENT][INDENT]case 1: { _this = createVehicle ["_ShipType", [13409.15,3013.8,0], [], 0, "CAN_COLLIDE"]; }[/INDENT][/INDENT]
[INDENT][INDENT]case 2: { _this = createVehicle ["_ShipType", [14171.64,2904.04,0], [], 0, "CAN_COLLIDE"]; };[/INDENT][/INDENT]
[INDENT][INDENT].
.
.
.
.
.[/INDENT][/INDENT]
[INDENT][INDENT]case 21: { _this = createVehicle ["_ShipType", [1970.54,2078.7,0], [], 0, "CAN_COLLIDE"]; };[/INDENT][/INDENT]

};

diag_log "FUNC: Spawn Heli";

But it didn't work..
=(
 
should be something like

_arraycars = ["car1", "car2", "car3"]
_randomcar = _arraycars select floor random count _arraycars;
_spawncar = createVehicle [_randomCar, [some location], [], 0, "CAN_COLLIDE"];

location can be selected from arrays aswell, maybe even from arrays of arrays or whatever :D
 
Maybe like this:

Code:
activateAddons ["water"];

_min = 1;
_diff = 2; 
_ShipType = "";

for [{_i=0}, {_i<22}, {_i=_i+1}] do
{
        _ShipSelect = round (_min + (random _diff));[INDENT]switch (_ShipSelect) do
[/INDENT]
[INDENT]{[/INDENT]
[INDENT][INDENT]case 1: { _ShipType = "RHIB"; };[/INDENT]
[/INDENT]
[INDENT][INDENT]case 2: { _ShipType = "PBX"; };[/INDENT]
[/INDENT]
[INDENT][INDENT]case 3: { _ShipType = "Zodiac"; };[/INDENT]
[/INDENT]
[INDENT]};[/INDENT]
[INDENT]switch (_i) do[/INDENT]
[INDENT]{[/INDENT]
[INDENT][INDENT]case 1: { _this = createVehicle ["_ShipType", [13409.15,3013.8,0], [], 0, "CAN_COLLIDE"]; }[/INDENT]
[/INDENT]
[INDENT][INDENT]case 2: { _this = createVehicle ["_ShipType", [14171.64,2904.04,0], [], 0, "CAN_COLLIDE"]; };[/INDENT]
[/INDENT]
[INDENT][INDENT].
.
.
.
.
.[/INDENT]
[/INDENT]
[INDENT][INDENT]case 21: { _this = createVehicle ["_ShipType", [1970.54,2078.7,0], [], 0, "CAN_COLLIDE"]; };[/INDENT]
[/INDENT]

};

diag_log "FUNC: Spawn Heli";

Or this like:

Code:
activateAddons ["water"];

_min = 1;
_diff = 2; 
_ShipClass = ["RHIB", "PBX", "Zodiac"];

for [{_i=0}, {_i<22}, {_i=_i+1}] do
{
        //_ShipType = _ShipClass select (random (count _ShipClass - 1)); 0, 1, 2
        //_ShipType = _ShipClass select floor (random 3); 0, 1, 2
        _ShipType = _ShipClass select floor random count _ShipClass; // 0, 1, 2[INDENT]switch (_i) do[/INDENT]
[INDENT]{[/INDENT]
[INDENT][INDENT]case 1: { _this = createVehicle ["_ShipType", [13409.15,3013.8,0], [], 0, "CAN_COLLIDE"]; }[/INDENT]
[/INDENT]
[INDENT][INDENT]case 2: { _this = createVehicle ["_ShipType", [14171.64,2904.04,0], [], 0, "CAN_COLLIDE"]; };[/INDENT]
[/INDENT]
[INDENT][INDENT].
.
.
.
.
.[/INDENT]
[/INDENT]
[INDENT][INDENT]case 21: { _this = createVehicle ["_ShipType", [1970.54,2078.7,0], [], 0, "CAN_COLLIDE"]; };[/INDENT]
[/INDENT]

};

diag_log "FUNC: Spawn Heli";



BTW, this is bad code. This is my own opinion.
mpayne already explained it...
 
Last edited:
Probably a dumb question, but would this be working as of today on a .60 server?
 
Back