Skip to content

Documentation / @sw-file-lib/xml / VehicleSchemas / ComponentOImmutable

Interface: ComponentOImmutable ​

ts
interface ComponentOImmutable {
  readonly r?: string;
  readonly bc?: string;
  readonly bc2?: string;
  readonly bc3?: string;
  readonly ac?: string;
  readonly sc?: string;
  readonly scale?: number;
  readonly spawn_rod?: boolean;
  readonly spring_factor?: number;
  readonly ai_type?: number;
  readonly blade_count?: number;
  readonly blade_pitch?: number;
  readonly blade_length?: number;
  readonly coal_fill?: number;
  readonly current_tick?: number;
  readonly custom_name?: string;
  readonly control_mode_0?: number;
  readonly decimal_point_pos?: number;
  readonly audio_data?: string;
  readonly flare_type?: number;
  readonly flare_color?: number;
  readonly fluid_type?: number;
  readonly fuel_factor?: number;
  readonly gc?: string;
  readonly gca?: string;
  readonly gear_ratio_1?: number;
  readonly gear_ratio_2?: number;
  readonly grip_factor?: number;
  readonly hold_duration?: number;
  readonly default_state?: boolean;
  readonly input_ch_1?: number;
  readonly input_ch_2?: number;
  readonly input_ch_3?: number;
  readonly interactive_default_state?: boolean;
  readonly fluid_filter?: number;
  readonly fluid_fill?: number;
  readonly m_fov_x?: number;
  readonly m_fov_y?: number;
  readonly m_pitch_angle?: number;
  readonly m_sweep_mode?: number;
  readonly max_force_scalar?: number;
  readonly max_force_scale?: number;
  readonly muzzle_velocity?: number;
  readonly gear_ratio?: number;
  readonly input_velocity?: number;
  readonly ordinance_type?: number;
  readonly property_ammo_damage?: number;
  readonly property_ammo_type?: number;
  readonly rps_limit?: number;
  readonly sensitivity?: number;
  readonly spawn_charge?: number;
  readonly stiffness_factor?: number;
  readonly damping_factor?: number;
  readonly throttle_min?: number;
  readonly throttle_max?: number;
  readonly timer_scalar_1?: number;
  readonly timer_scalar_2?: number;
  readonly tire_type?: number;
  readonly trigger?: number;
  readonly trigger_label?: string;
  readonly func_type?: number;
  readonly hotkey_0?: number;
  readonly hotkey_0_label?: string;
  readonly hotkey_1?: number;
  readonly hotkey_1_label?: string;
  readonly hotkey_2?: number;
  readonly hotkey_2_label?: string;
  readonly hotkey_3?: number;
  readonly hotkey_3_label?: string;
  readonly hotkey_4?: number;
  readonly hotkey_4_label?: string;
  readonly hotkey_5?: number;
  readonly hotkey_5_label?: string;
  readonly control_mode_0_label?: string;
  readonly control_mode_1?: number;
  readonly control_mode_1_label?: string;
  readonly control_mode_2?: number;
  readonly control_mode_2_label?: string;
  readonly control_mode_3?: number;
  readonly control_mode_3_label?: string;
  readonly is_infrared?: boolean;
  readonly lss_mode?: number;
  readonly property_text?: string;
  readonly radar_fov?: number;
  readonly sensor_radius?: number;
  readonly sensor_type?: number;
  readonly sensor_mode?: number;
  readonly val_1_name?: string;
  readonly val_2_name?: string;
  readonly volume?: number;
  readonly pitch?: number;
  readonly wheel_size?: number;
  readonly double_wheel?: boolean;
  readonly tyre_pressure?: number;
  readonly microprocessor_definition?: MicroprocessorDefinitionImmutable;
  readonly vp?: XmlVec3Immutable;
  readonly logic_slots?: readonly LogicSlotImmutable[];
  readonly delta_damping?: XmlVec3Immutable;
  readonly display_1?: DisplayImmutable;
  readonly display_2?: DisplayImmutable;
  readonly display_3?: DisplayImmutable;
  readonly display_4?: DisplayImmutable;
  readonly impact_sensor_threshold?: TextValuePairImmutable;
  readonly m_sweep_limit?: TextValuePairImmutable;
  readonly m_sweep_speed?: TextValuePairImmutable;
  readonly min_value?: TextValuePairImmutable;
  readonly max_value?: TextValuePairImmutable;
  readonly property_output_float_val?: TextValuePairImmutable;
  readonly min_threshold?: TextValuePairImmutable;
  readonly max_threshold?: TextValuePairImmutable;
  readonly pid_controller_ki?: TextValuePairImmutable;
  readonly pid_controller_kp?: TextValuePairImmutable;
  readonly pid_controller_kd?: TextValuePairImmutable;
  readonly pid_controller_max_error?: TextValuePairImmutable;
  readonly exp?: TextValuePairImmutable;
  readonly min_lever_value?: TextValuePairImmutable;
  readonly max_lever_value?: TextValuePairImmutable;
  readonly starting_lever_value?: TextValuePairImmutable;
  readonly trim_x_display?: TextValuePairImmutable;
  readonly trim_y_display?: TextValuePairImmutable;
  readonly trim_z_display?: TextValuePairImmutable;
  readonly trim_w_display?: TextValuePairImmutable;
  readonly axis_sensitivity?: AxisSensitivityImmutable;
}

Defined in: packages/xml/src/schemas/generated/vehicle-immutable.ts:492

Represents <o> element in Stormworks vehicle data.

XML location: <vehicle> / <bodies> / <body> / <components> / <c> / <o>

Parent: ComponentImmutable

This is the recommended type for function parameters when it does not need to modify the value. Use ComponentO instead if mutation is required.

See ​

Properties ​

PropertyModifierType

r?

readonly

string

bc?

readonly

string

bc2?

readonly

string

bc3?

readonly

string

ac?

readonly

string

sc?

readonly

string

scale?

readonly

number

spawn_rod?

readonly

boolean

spring_factor?

readonly

number

ai_type?

readonly

number

blade_count?

readonly

number

blade_pitch?

readonly

number

blade_length?

readonly

number

coal_fill?

readonly

number

current_tick?

readonly

number

custom_name?

readonly

string

control_mode_0?

readonly

number

decimal_point_pos?

readonly

number

audio_data?

readonly

string

flare_type?

readonly

number

flare_color?

readonly

number

fluid_type?

readonly

number

fuel_factor?

readonly

number

gc?

readonly

string

gca?

readonly

string

gear_ratio_1?

readonly

number

gear_ratio_2?

readonly

number

grip_factor?

readonly

number

hold_duration?

readonly

number

default_state?

readonly

boolean

input_ch_1?

readonly

number

input_ch_2?

readonly

number

input_ch_3?

readonly

number

interactive_default_state?

readonly

boolean

fluid_filter?

readonly

number

fluid_fill?

readonly

number

m_fov_x?

readonly

number

m_fov_y?

readonly

number

m_pitch_angle?

readonly

number

m_sweep_mode?

readonly

number

max_force_scalar?

readonly

number

max_force_scale?

readonly

number

muzzle_velocity?

readonly

number

gear_ratio?

readonly

number

input_velocity?

readonly

number

ordinance_type?

readonly

number

property_ammo_damage?

readonly

number

property_ammo_type?

readonly

number

rps_limit?

readonly

number

sensitivity?

readonly

number

spawn_charge?

readonly

number

stiffness_factor?

readonly

number

damping_factor?

readonly

number

throttle_min?

readonly

number

throttle_max?

readonly

number

timer_scalar_1?

readonly

number

timer_scalar_2?

readonly

number

tire_type?

readonly

number

trigger?

readonly

number

trigger_label?

readonly

string

func_type?

readonly

number

hotkey_0?

readonly

number

hotkey_0_label?

readonly

string

hotkey_1?

readonly

number

hotkey_1_label?

readonly

string

hotkey_2?

readonly

number

hotkey_2_label?

readonly

string

hotkey_3?

readonly

number

hotkey_3_label?

readonly

string

hotkey_4?

readonly

number

hotkey_4_label?

readonly

string

hotkey_5?

readonly

number

hotkey_5_label?

readonly

string

control_mode_0_label?

readonly

string

control_mode_1?

readonly

number

control_mode_1_label?

readonly

string

control_mode_2?

readonly

number

control_mode_2_label?

readonly

string

control_mode_3?

readonly

number

control_mode_3_label?

readonly

string

is_infrared?

readonly

boolean

lss_mode?

readonly

number

property_text?

readonly

string

radar_fov?

readonly

number

sensor_radius?

readonly

number

sensor_type?

readonly

number

sensor_mode?

readonly

number

val_1_name?

readonly

string

val_2_name?

readonly

string

volume?

readonly

number

pitch?

readonly

number

wheel_size?

readonly

number

double_wheel?

readonly

boolean

tyre_pressure?

readonly

number

microprocessor_definition?

readonly

MicroprocessorDefinitionImmutable

vp?

readonly

XmlVec3Immutable

logic_slots?

readonly

readonly LogicSlotImmutable[]

delta_damping?

readonly

XmlVec3Immutable

display_1?

readonly

DisplayImmutable

display_2?

readonly

DisplayImmutable

display_3?

readonly

DisplayImmutable

display_4?

readonly

DisplayImmutable

impact_sensor_threshold?

readonly

TextValuePairImmutable

m_sweep_limit?

readonly

TextValuePairImmutable

m_sweep_speed?

readonly

TextValuePairImmutable

min_value?

readonly

TextValuePairImmutable

max_value?

readonly

TextValuePairImmutable

property_output_float_val?

readonly

TextValuePairImmutable

min_threshold?

readonly

TextValuePairImmutable

max_threshold?

readonly

TextValuePairImmutable

pid_controller_ki?

readonly

TextValuePairImmutable

pid_controller_kp?

readonly

TextValuePairImmutable

pid_controller_kd?

readonly

TextValuePairImmutable

pid_controller_max_error?

readonly

TextValuePairImmutable

exp?

readonly

TextValuePairImmutable

min_lever_value?

readonly

TextValuePairImmutable

max_lever_value?

readonly

TextValuePairImmutable

starting_lever_value?

readonly

TextValuePairImmutable

trim_x_display?

readonly

TextValuePairImmutable

trim_y_display?

readonly

TextValuePairImmutable

trim_z_display?

readonly

TextValuePairImmutable

trim_w_display?

readonly

TextValuePairImmutable

axis_sensitivity?

readonly

AxisSensitivityImmutable