1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-22 12:47:46 +00:00
project-meteor-server/Data/scripts/commands/gm/music.lua

17 lines
410 B
Lua
Raw Permalink Normal View History

properties = {
permissions = 0,
parameters = "ss",
description =
[[
Plays music <id> to player, otherwise resets to the zone's music.
!music
!music <id>
!music <id> <transition_type>
]],
}
function onTrigger(player, argc, music, transition)
music = tonumber(music) or player.currentArea.bgmDay or 0;
transition = tonumber(transition) or nil;
player:ChangeMusic(music, transition);
end;