I'm attempting to refill a current car's N20 when it enters a lua trigger. I thought I could base such a command off of the following line, Code: be:getPlayerVehicle(0):queueLuaCommand("energyStorage.getStorage('mainBottle'):setRemainingVolume(200)") but that doesn't seem to be the case. It should be easy to implement since nitrous oxide is an energyStorage device, right? EDIT: After trial and error, I got a working command: Code: be:getPlayerVehicle(0):queueLuaCommand("energyStorage.getStorage('mainBottle'):setRemainingMass(200)")
I tried with another command line to refuel as I enter "lua trigger" area with Current Vehicle... but nothing happened as i write following SYNTAX energyStorage.getStorage('mainTank'):setRemainingRatio(1) ...this one just works in beamng console...
I tried with another command line to refuel a diesel Gavril with two tanks, as I enter "lua trigger" area with Current Vehicle... but nothing happened as i write following SYNTAX energyStorage.reset() This just reset the fuel amount and nothing else. ...this one just works in beamng console...