Baseless/helpers/CreateVehicle.lua

15 lines
257 B
Lua
Raw Normal View History

2020-04-22 04:35:40 +00:00
function CreateVehicle (type, prototype)
return CreateEntityWithHealth(
type,
MergeTables(
prototype,
{
braking_force = 1,
energy_per_hit_point = 1,
friction_force = 1,
weight = 1,
}
)
)
end