28 lines
657 B
Ucode
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"
|
|
} |