Prototype/Car

From Official Factorio Wiki
Revision as of 08:08, 23 May 2018 by Bilka (talk | contribs) (0.16)
Jump to navigation Jump to search

Basics

Entity with specialized properties for acceleration, braking, and turning. Extends Prototype/Vehicle.

Usage in base

Mandatory properties

This prototype inherits all the properties from Prototype/Vehicle.

animation

Type: Types/RotatedAnimation

Animation speed 1 means 1 frame per tile.

effectivity

Type: Types/double

Modifies the efficiency of energy transfer from burner output to wheels.

consumption

Type: Types/Energy

rotation_speed

Type: Types/double

burner

Type: Types/EnergySource

Must be a burner energy source.

inventory_size

Type: Types/ItemStackIndex

Size of the car inventory.

Optional properties

turret_animation

Type: Types/RotatedAnimation

Animation speed 1 means 1 frame per tile.

render_layer

Type: Types/RenderLayer

Default: "object"

tank_driving

Type: Types/bool

Default: false

If this car prototype uses tank controls to drive.

has_belt_immunity

Type: Types/bool

Default: false

If this car is immune to movement by belts.

immune_to_tree_impacts

Type: Types/bool

Default: false

If this car gets damaged by drving over/against trees.

turret_rotation_speed

Type: Types/double

Default: 0.01

turret_return_timeout

Type: Types/uint32

Default: 60

Timeout in ticks specifying how long the turret must be inactive to return to the default position.

light

Type: Types/LightDefinition

sound_no_fuel

Type: Types/Sound

guns

Type: Types/table of Types/strings of prototype names

The guns this car prototype uses.