-
-
Save aisot/8435484c172526f9bbb082474cbab102 to your computer and use it in GitHub Desktop.
VCI lua script loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Start() | |
vci.assets._ALL_StopAnimation() | |
vci.assets._ALL_PlayAnimationFromIndex(0,false) | |
vci.assets._ALL_PlayAudioFromName("trainmono") | |
startTime = os.time() | |
end | |
function update() | |
if startTime == nil or os.difftime (os.time(), startTime) > 180 --ループ時間 180秒 | |
then | |
Start() | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment