ConsoleMan:SaveInputLog

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxConsoleMan:SaveInputLog( String )
Description:
Outputs the console input log to a file, with semicolons.
Returnsnil




Example
DescriptionOutputs the commands typed to lua.txt.
Code
  1. for actor in MovableMan.Actors do if actor.Team == 0 then actor.Health = 200 end end
  2. for actor in MovableMan.Actors do if actor.Team == 1 then actor.Health = 0 end end
  3. ConsoleMan:SaveInputLog("lua.txt")
Outputnil to console, those two lines of Lua to lua.txt


Could be used to generate scripts.

Personal tools