• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Have working vehicles be placed in random maps?

Knasp

New member
I wonder if it's possible to have the random world generator place working vehicles, that the players can find and use?

I know vehicles can be added to loot.xml but I would like them to be placed directly on the map. Like those annoying broken Sedans.

Is it possible to edit prefabs by Xpath? Or if I make my own prefab, could I add a probability to spawn the vehicle or not? So that every such prefab have a random chance to spawn the vehicle?

 
Working on putting driveable cars in the world, so fingers crossed.

Can't edit prefabs by xpath. =)

 
If you are able to make container (blocks) looking like vehicle you can place them as deco in the world

(Would mean a selfdestroying bike container containing a bike)

 
Great idea! This gives some motivation to explore. I think it perfectly fits the theme too. Why are 100% of cars broken? I would think at least a few would still work?

 
Got this working. 2 are driveable, 3 are "blocks" that you need to loot (broken cars).

tmp-Car-Set.png


- - - Updated - - -

...there are some inherent weirdnesses though when having driveable vehicles spawn naturally on the road... because they're technically entities, they don't spawn as far out as blocks, so they will often "pop in". Oh well. It works. =)

 
Back
Top