Stormworks: Build and Rescue

Stormworks: Build and Rescue

Não há avaliações suficientes
2Way Push Button
   
Premiar
+ favoritos
Nos favoritos
- favoritos
Marcadores: v1.8.2
Tamanho
Publicado em
Atualizado em
83.169 KB
28/jun./2023 às 21:12
29/jun./2023 às 0:02
3 notas de atualização ( ver )

Inscreva-se para baixar
2Way Push Button

Descrição
【Translated from DeepL】
This is a sample of a push button that can be used 2-way.

A short press on the center push button turns the left light on and off.
Press and hold the push button for 1 second to turn the right light on and off.

Use one button for two-step operation, or use only the long push button to prevent malfunctions, etc.
If you want to change the time for the long press judgment, change the time at the top of the Lua code.

Default: "pushtime = 60 --Long press judgment time(tick)".

The default "60" is the tick value.
On average, 1 tick is 1/60th of a second, so 60 ticks is about 1 second.
For example, if you want to set the long press judgment time to about 2 seconds, use "pushtime = 120 --Long press judgment time(tick)".

If you require only the malfunction prevention button function, please refer to the following
https://steamcommunity.com/sharedfiles/filedetails/?id=2996158668