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

28 lines
657 B
Ucode

// ====================================================================
// Class: GamePlay.Action_ConsoleCommand
// Parent: GamePlay.ScriptedAction
//
// Executes a console command
// ====================================================================
class Action_ConsoleCommand extends ScriptedAction;
var(Action) string CommandStr; // The console command to execute
function bool InitActionFor(ScriptedController C)
{
if (CommandStr!="")
C.ConsoleCommand(CommandStr);
return false;
}
function string GetActionString()
{
return ActionString@CommandStr;
}
defaultproperties
{
ActionString="console command"
}