I wish I knew coding better, but learning is hard for me. I want to get a node's cid and I find I can only do that in the controller folder (*mod name/vehicles/bastion/lua/controller), but I then want to do some stuff with key-binding inputs, but I'm finding I can only do that in the root lua folder (*mod name/vehicles/bastion/lua). (This is to change a node's weight when pressing a key) is there a way to pass values between these different files, or am I doing something wrong? (examples of how the code would look will help)
I figured it out with help, I put it in the lua/vehicle/extensions/auto folder, and had to set the electrics value to a numeric value on initiation so I could use it for maths, otherwise it starts as nil and bugs the car out on spawn