Skip to content
You're reading the docs for Railroader 0.6 (the MoW Update), currently available on the Experimental branch.

DetailModel

A detail model to be instantiated on a car or prop. This is used to display external models on a car, for example to reuse a model or for script-toggled models (“body groups”).

  • Kind: DetailModel
  • Availability: Car, Prop

On a prop, it is recolored by the prop’s styles.

The referenced model will be loaded and instantiated asynchronously and shown on the model using this component’s transform values.

If count is greater than one, multiple instances will be created, spaced out along offset: instance i is placed at i * offset (so instance 0 is at the component’s own transform, instance 1 at offset, instance 2 at 2 * offset, and so on). This can be used to show multiple seats in a coach.

count

int = 1

Number of instances.

cullScreenHeight

float = 0.02

LOD screen-height cull threshold. 0 disables culling.

Model asset to instantiate.

offset

float[3] = [0, 0, 0]

Per-instance spacing [x, y, z], applied as a stride: instance i is offset by i * offset from the component’s transform.