SoniaStrummFan Posted August 28, 2011 Share Posted August 28, 2011 I was wondering if anyone could help me make a fuel consumption script I could use for vehicles? I get how to modify a vehicle, but I can't write a script. I simply lack enough understanding of scripts to understand how to write my own custom one. So, I was hoping I could get some help from anyone out there who can write a script. Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 28, 2011 Share Posted August 28, 2011 You could develop almost any algorithm for fuel consumption that you like. Perhaps the easiest is to just assume that fuel is consumed at a constant rate, and then count how long the vehicle has been running. All you have to is use llResetTime when you start the engine and llGetTime whenever you want to know how long it has been running. Multiply that by your phony fuel consumption rate constant and you're done. Link to comment Share on other sites More sharing options...
Cid Jacobs Posted August 31, 2011 Share Posted August 31, 2011 It depends on what type of fuel you are using firstly. You need to figure out it's energy production per unit after you determine the type of fuel. Then you need to figure out your engine efficiency at certain stages, or come up with a formula based on velocity. Then you should have an adjustment value based on the mass of the vehicle + passengers. Don't forget you also consume fuel while idling, so you may want to include that as well. Link to comment Share on other sites More sharing options...
Lolita Erin Posted August 3, 2017 Share Posted August 3, 2017 Hi SoniaStrummFan did you find how to do this? Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 3, 2017 Share Posted August 3, 2017 1 hour ago, Lolita Erin said: Hi SoniaStrummFan did you find how to do this? Six years ago? Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now