home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Gameplay / Classes / ACTION_ConsoleCommand.uc < prev    next >
Text File  |  2003-12-11  |  657b  |  28 lines

  1. // ====================================================================
  2. //  Class:  GamePlay.Action_ConsoleCommand
  3. //  Parent: GamePlay.ScriptedAction
  4. //
  5. //  Executes a console command
  6. // ====================================================================
  7.  
  8. class Action_ConsoleCommand extends ScriptedAction;
  9.  
  10. var(Action) string        CommandStr;    // The console command to execute
  11.  
  12. function bool InitActionFor(ScriptedController C)
  13. {
  14.     if (CommandStr!="")
  15.         C.ConsoleCommand(CommandStr);
  16.         
  17.     return false;    
  18. }
  19.  
  20. function string GetActionString()
  21. {
  22.     return ActionString@CommandStr;
  23. }
  24.  
  25. defaultproperties
  26. {
  27.     ActionString="console command"
  28. }