Just wondering if anyone has a clever solution for my issue, i'm currently running a lua script trough a ui app that has a slider. Code: bngApi.activeObjectLua( 'extensions.slowmoApp.setSlowmoPercentage()' ); but i'm having issues trying to send the value from the slider in the javascript to the lua. (There is probably something really obvious that i overlooked)
Code: bngApi.engineLua( 'extensions.slowmoApp.setSlowmoPercentage('+ slider.value.toString() + ')' ); `activeObjectLua` is to send a command to the current vehicle i'm not sure what you are trying to do but most probably the module is in GE so you should use `engineLua`, if it was a vehicle extensions them `activeObjectLua` was correct
So in theory i wouldn't even need the custom lua if i'm calling the bullettime.lua in ge right? and just do it like this instead? Code: bngApi.engineLua( 'bullettime.set('+ val.toString() + ')' );