What it does
vehicle.create brings a vehicle object into being: it is how the rest of the script comes to have one. It takes entityId and config. config is optional.
The API says: wheels, suspension, engine
Signature
vehicle.create(entityId, config?)Arguments
entityIdconfigoptional
Example · generated
function start() { vehicle.create('main');}vehicle.create is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.