rott/kf_sources/GamePlay/Classes/Action_PLAYLOCALSOUND.uc
2026-07-14 20:27:09 +07:00

24 lines
428 B
Ucode

class ACTION_PlayLocalSound extends ScriptedAction;
var(Action) sound Sound;
function bool InitActionFor(ScriptedController C)
{
local PlayerController P;
// play appropriate sound
ForEach C.DynamicActors(class'PlayerController', P)
P.ClientPlaySound(Sound);
return false;
}
function string GetActionString()
{
return ActionString@Sound;
}
defaultproperties
{
ActionString="play sound"
}