How do I force a vehicle to be damaged every time it spawns?

Gunnysack Man

New Member
On our server I want to set a select few vehicles to spawn entirely damaged (all red no fuel). But I can only spawn them "unrepaired" with the map on the dayz.st control panel, which spawns them with only a few parts repaired occasionally. If somebody could tell me how to force a vehicle to spawn completely damaged but repairable, or point me to the right area of code for doing so, that'd be awesome!
 
I've been thinking of manually spawning every vehicle in the server with certain parts broken like the main poster suggests. Sadly, I'm not sure the database system on DayZ.st servers allows to create vehicle spawn locations AND edit the vehicle's starting condition at the same time.

Say, for example, I want to spawn a humvee on the map, but I want it to have all wheels gone and the engine completely red. The way the DB works, even if I set it .9 damage, it's possible for the vehicle to spawn in "working" conditions. Yes, it'll blow up if you bump against a blade of grass, but it's still working.

Ideally, I'd like players to have to go look for parts in order to have a working vehicle, not to just drive around in one that's bound to explode any second.

I believe this is were the main poster's questions was directed to... or I may be wrong.
 
Vehicle table in your database.

Set damage max & min, and fuel max & min.

If you set it to...

Dmg min - 0.6
Dmg max - 0.8
fuel min - 0.0
fuel max - 0.0

then vehicles will always need almost full repairs
 
Oh okay, so I was setting damage and fuel values low, assuming 0 was completely empty/damaged. I get how this works now. Thanks guys!

Maybe you could also help me with another issue I'm having vehicle-wise; I have TONS of Little Bird spawns (both types) and our vehicle limit is 400. We have 176 vehicles spawned and the minimum amount of LB's are not spawning. Any insight on this issue?
 
im trying to do the same however i have put a jet in and want to make it so it needs more then just the hull being repaired. how would i go about doing this?
 
Back
Top