Last active
October 9, 2022 03:20
-
-
Save IosysPio/40a6eff6d59be0a707c4c2cc37d9da7b to your computer and use it in GitHub Desktop.
VCIで複数の音声の中からランダムで一つ流す例(2020-03版)
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
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