queueLuaCommand does not work?

Discussion in 'Programming' started by Incognito, Aug 27, 2013.

  1. Incognito

    Incognito
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    246
    After the last update, I noticed that my mod has stopped working. It was possible to find out the reason: function "queueLuaCommand()" does not work.
    It was so conceived or there is an alternative to this function? :)
    Thanks for answer.
     
  2. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    queueLuaCommand is still working, however we changed the input system how events are submitted:

    example excerpt from scripts/client/beamng.cs :
    Code:
    vlua("input.event(\'axisx0\', " @ %val @ ", " @ %inputType @ ")");
    
    so, you need to call "input.event(<event name>, <value>, <input type: 0 for keyboard, 1 for gamepads, 2 = direct for wheels)" now to make it work again :)

    Good luck, looking forward to your mod!
     
  3. Incognito

    Incognito
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    246
    Thanks for the reply. I did not think changes is so serious :D
    He is ready :)
     
  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