Factorio Prototype DocsVersion 1.1.107

GameControllerVibrationData :: struct

Properties

low_frequency_vibration_intensity optional :: float

Vibration intensity must be between 0 and 1.

Vibration intensity must be between 0 and 1.

high_frequency_vibration_intensity optional :: float

Vibration intensity must be between 0 and 1.

Vibration intensity must be between 0 and 1.

duration optional :: uint32

Duration in milliseconds.

Duration in milliseconds.

play_for optional :: PlayFor

Properties

low_frequency_vibration_intensity :: float optional

Default: 0

Vibration intensity must be between 0 and 1.

high_frequency_vibration_intensity :: float optional

Default: 0

Vibration intensity must be between 0 and 1.

duration :: uint32 optional

Default: 0

Duration in milliseconds.

play_for :: PlayFor optional

Default: "character_actions"

PlayFor :: union

Defines when controller vibrations should be played.

Union members

"character_actions"

Play the vibration only if it was caused by the player. For example when shooting a gun, vibration will play when the character shoots but not when a turret shoots.

"everything"

Always play the vibration. Useful for example for explosions.

Prototypes

Types