AN2_DZ & AH6X_EP1 Exploding on spawn

Phenom

Well-Known Member
Not sure why this is occurring, as I have placed many vehicles in the map and never had any trouble however when I insert these two vehicle types and I am running 1.7.4.4 they spawn in mid air and crash into the ground.

I have always used the mission editor and converted the formatting before placing them in the DB. Any help would be appreciated.

Code:
insert into vehicle (id, class_name,damage_min,damage_max,fuel_min,fuel_max,limit_min,limit_max,parts,inventory)
values('200', 'AN2_DZ', '0.100', '0.700', '0.200', '0.800', '1', '1', 'motor', '[]');
 
insert into world_vehicle (vehicle_id, world_id, worldspace, chance)
values
(200,1,'[245,[X]]',0.650),
(200,1,'[215,[X]]',0.650),
(200,1,'[15,[X]]',0.650);

Code:
insert into vehicle (id, class_name,damage_min,damage_max,fuel_min,fuel_max,limit_min,limit_max,parts,inventory)
values('201', 'AH6X_DZ', '0.100', '0.700', '0.200', '0.800', '1', '1', 'motor', '[]');
 
insert into world_vehicle (vehicle_id, world_id, worldspace, chance)
values
(201,1,'[220,[X]]',0.650),
(201,1,'[220,[X]]',0.650),
(201,1,'[220,[X]]',0.650),
(201,1,'[220,[X]]',0.650);
 
Ill use one of your sets of coords as an example. I believe this is why.

[220,[9250.1396,4082.9763,249.30508]]

220 is the direction in degrees its facing
next set
9250.1396 is the X axis on the grid
next set
4082.9763 is the Y axis on the grid
and finally
249.30508 is the Z axis. Z axis is also known for height of an object. In this case you are spawning this specific vehicle 249.30508 meters in the sky LOL. Set that number to 0 and it should spawn on the ground where ever that set of coordinates happen to be. 0 is the ground whether it is on a mountain or in a valley 0 will always be on ground. if that makes sense.
 
Thanks, I looked the UH settings to see that and couldn't work it out, I figured it was in there!

Now to delete my cords just in case ;)
 
Back
Top