Skip to content

Instantly share code, notes, and snippets.

@IosysPio
Last active October 9, 2022 03:20
Show Gist options
  • Save IosysPio/40a6eff6d59be0a707c4c2cc37d9da7b to your computer and use it in GitHub Desktop.
Save IosysPio/40a6eff6d59be0a707c4c2cc37d9da7b to your computer and use it in GitHub Desktop.
VCIで複数の音声の中からランダムで一つ流す例(2020-03版)
local filename = { "file01", "file02", "file03" }
functiono onUse(item)
vci.assets.sound._ALL_Play(filename[math.random(#filename)], 1.0, false)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment