Solved vehicle Lua write to Log

Discussion in 'Mod Support' started by aljowen, Jun 27, 2017.

  1. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Is there currently anyway to make vehicle Lua write something to the in game log?

    For example when debugging a broken Lua script it would be useful to be able to add a line of code that can write to the in game log. So that when the vehicle is run it is possible to find out exactly where code stopped behaving as expected.

    It would be even more awesome to be able to add the above debug logging with ability to log strings with the ability to toggle logging. Since that would allow for explicit debugging to be left in the lua file while only doing said logging when it is requested.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice