move function from 02 sound to 02 actor; small edit to 02 optionsmenu

This commit is contained in:
AJ Kelly
2011-09-26 14:28:52 -05:00
parent a7d69d791b
commit ca120fdba7
3 changed files with 7 additions and 35 deletions
+7
View File
@@ -214,6 +214,13 @@ function HelpDisplay:setfromsongorcourse()
self:settips( Artists, AltArtists )
end
-- Play the sound on the given player's side. Must set SupportPan = true
-- on load.
function ActorSound:playforplayer(pn)
local fBalance = SOUND:GetPlayerBalance(pn)
self:get():SetProperty("Pan", fBalance)
self:play()
end
-- (c) 2006 Glenn Maynard
-- All rights reserved.