**Body Boxes
**
There has been a bit of a change in how car bodies are made for Automation. Basically the upper and lower body boxes (which are used to define weight, centre of gravity etc.) are now dynamic, and morph when the body does.
It’s pretty simple, all you need to do is skin them the same way you’d skin a cargo box currently, so that they change size in roughly the same way the car does when you move the bone they’re skinned to.
There are new materials for these boxes, they are
***ECS_BOTTOM_BOX
ECS_TOP_BOX
These are assigned in the LUA file, as usual.
It’s also important that the boxes be the diamond shape that is pictured in this screenshot. This is so that changing the slope of part of the car doesn’t increase the overall size of the car massively. The body boxes should only change when the car is made taller overall, or longer overall.
Convertibles
If you want a car to act correctly as a convertible stats wise, add the flag
ConvertSoft = true,
or
ConvertHard = true,
(for folding hardtops)
Quotation marks in Material listings
All materials in the materials list in LUA should now have quotation marks, like
*** “ECS_BODY”,***
Multiple Engine Placements
You can now have a body that can have the engine placed in the front OR rear in the same body.
A body that supported all engine placements would have THIS in the LUA file
***EngineTypes = {
FRONT = true,
MID = true,
REAR = true,
},
You’ll also need a second cargo box in the front (if that’s where the cargo space would be on a rear engined version. It’ll need the material
ECS_CARGO_REAR
(That’s rear meaning rear engined, not cargo in the rear)
Body & Cargo Box Troubleshooting
You can now type ToggleBounds() in the console (bring it up by pressing ~ )
You’ll need to enter this command AFTER you’ve chosen chassis and suspension.
It’ll show you the outlines of the body boxes and cargo boxes. This is useful for making sure they change size as expected, and that you’ve got them assigned to the correct objects.
Any Questions?
Ask here! I’ll probably do a video tutorial update soon, but this should get you going for now.