Condition and Message

This commit is contained in:
Frank
2022-11-30 18:37:14 +01:00
parent df2a6a6902
commit f17f688a20
2 changed files with 81 additions and 1 deletions

View File

@@ -433,3 +433,13 @@ function MESSAGE:ToAllIf( Condition )
return self
end
--- Sends a MESSAGE to DCS log file.
-- @param #MESSAGE self
-- @return #MESSAGE self
function MESSAGE:ToLog()
env.info(self.MessageCategory .. self.MessageText:gsub( "\n$", "" ):gsub( "\n$", "" ))
return self
end