Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Well there's a script for it by KGC, I will give you a link to a topic by Mr. Anonymous (thanks to him for translation) and download the demo. Look for the script, "KGC_OldEventCommands"
then look for this script line: