Hi, I am trying to detect end of song in FunkySK, but the event is not triggered I guess. The song starts playing, but when the song stop, it does not broadcast "end". Any idea what is wrong?
Posted by: logr07 from the skUnity Discord. View the thread on skUnity Discord here
code_language.skript:
on inventory click:
if current inventory of player = (metadata tag "hudba" of player):
cancel event
if event-inventory = (metadata tag "hudba" of player):
# RADIO
if index of event-slot = 24:
set {_s::*} to songs in file "plugins/Skript/Radio/"
play song file "plugins/Skript/Radio/%(random element out of {_s::*})%" to player with id "radio"
on FunkySk song end with id "radio":
broadcast "end"
Posted by: logr07 from the skUnity Discord. View the thread on skUnity Discord here