I don't know what is a lau command, there is only Lua commands. I answered to the same question yesterday here, here's the Lua code : Code: local function onRaceWaypoint(data, goal) if data.waypointName == 'yourWaypointNameHere' then theEvent() end end return { onRaceWaypoint = onRaceWaypoint, }
Ok thanks for that, I was hoping for a way to do it trough the new scenario creation method that uses the scenario.json method as after the update my scenario.lua scripts were not working properly. any ideas if its possible that way? did you have any issues after the latest update with your scripts not working?
For now it's not possible to call Lua methods at the very same time you pass a checkpoint via the json file.