Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: kent79 on October 13, 2021, 07:58:21 PM

Title: How to delay action after pressed the key
Post by: kent79 on October 13, 2021, 07:58:21 PM
Hi

I have some coding question. As below coding, when I triggle "right" button and then running "cardStationViewer()" function immediately. My question is how to delay number of seconds to run function when I pressed the key. Thanks.

Code: [Select]
case "right":
cardStationViewer()
return true;