So I'm trying to make custom actions for pre-existing vehicles. I'm starting with the Grand Marshal. So far I have this: BeamNG.drive\mods\unpacked\MyMod\Vehicles\fullsize In that folder is: inputmaps input_actions_MyMod.json In inputmaps I have keyboard.json, which contains: Code: { "name" : "Keyboard", "version" : 1, "devicetype" : "keyboard", "vidpid" : "6F1D2B61", "bindings" : [ { "action" : "MyMod_Action", "control" : "u" }] , "guid" : "{6F1D2B61-D5A0-11CF-BFC7-444553540000}" } input_actions_MyMod.json contains: Code: { "MyMod_Action" : {"order": 1, "onChange":"Toggle state/do action", "isBasic":"true", "title":"Action Name", "desc":"Short action description" }, } And that's as far as I have gotten. Where do I go from here? What do I do if I want to, say, toggle two sets of lights with one key, or toggle a secondary variable rev limiter, or toggle a boost limiter? I know the part under "onChange" isn't correct either. What do I put there? Sorry if this is all obvious stuff, I'm a bit lost at the moment and don't have much time to experiment anymore.
I can't help you much but I can tell you that the onChange call a lua function, you need to create a lua file, if you don't know how to code lua i think you should learn a little bit before
I don't know if you can get anything out from this chaos which documents my adventures of this custom actions: https://www.beamng.com/threads/failing-at-creating-custom-inputmap.51839/
I wasn't sure about this, so thanks for clearing that up. Thanks. Like I said, I don't have much time since I've got work (I know, not good for this kind of stuff, but hey, what can you do?), but I'll have a read through this when I get the chance. Thanks again.