Readonly fileReadonly fileThe color of this shape.
The level of the engine.
Attempting to get this property from an engine in a blueprint saved in-game, without first setting it with this API, has a chance to return 0 instead of the actual level. This is due to some shenanigans with the way engine levels are stored within serialized Lua data.
The shapeId of this shape. Determines the model and behavior in-game.
Removes a connection to a bearing.
The bearing to disconnect from. Can be an ID.
Adds or updates a connection to a bearing.
The bearing to connect to. Can be an ID.
Whether the bearing spins counter-clockwise looking from the front. Defaults to false.
Protected updateStatic convertAttempts to convert a Child to an EnginePart. Only returns if the Child's file object is an EnginePart.
Static createCreates an engine.
The created engine.
The position of the engine.
The rotation of the engine.
Optional color: stringThe color of the engine. Fallbacks to the engine's default color.
The level of the engine. Defaults to 0.
Whether the engine is electric. Defaults to false.
Generated using TypeDoc
Represents an engine.