Skip to content

Instantly share code, notes, and snippets.

@aisot

aisot/main.lua Secret

Created February 24, 2019 09:21
Show Gist options
  • Save aisot/8435484c172526f9bbb082474cbab102 to your computer and use it in GitHub Desktop.
Save aisot/8435484c172526f9bbb082474cbab102 to your computer and use it in GitHub Desktop.
VCI lua script loop
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