24 lines
428 B
Ucode
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"
|
|
}
|