The log mission scripting command sends text to the mission's log file. Useful for debugging.
Attribute |
Valid Values |
Optional? |
Description |
text |
text |
|
text to be appended to the mission's log file. |
example:
<log text="Starting" />
results in the log file (located in the same directory as the associated mission script file) being created that looks like this:
**** log file for mission MISS_Mission_Name_Here ****
Starting
|
If you need to pass a variable to the log, you can surround it with "pipes". For instance if you need to record whether Station2 survived and you have a variable named "Station2Survives" set to "yes" or "no", you can create a log statement like this:
<log text="Did Station 2 Survive? |Station2Survives|" />
When this command writes to the log "|Station2Survives|" will be replaced with the value of the variable (either "yes" or "no").
Comments (0)
You don't have permission to comment on this page.