-
-
Notifications
You must be signed in to change notification settings - Fork 6
Part Engine Function
Ferdinand Calo edited this page Aug 6, 2019
·
7 revisions
# Function Overview
Name: Engine Function
Function: marks the part as Engine and stores engine related values
From FVTM: yesThe Engine Function allows you to a part as Vehicle Engine.
Example config (taken from GEP):
{
"__comment": "Part JSON file.",
"Function": {
"id": "fvtm:engine",
"engine_speed": 1,
"idle_consumption": 1,
"active_consumption": 8,
"consumptions": {
"petrodiesel": 9,
"synthetic": 6,
"biodiesel": 7
},
"fuel_group": "diesel"
}
}Here an overview of the available fields:
-
id- the id of the function, it isfvtm:engine -
engine_speed- engine speed ratio in the LegacySystem -
idle_consumption- mB consumption of fuel on when the engine is on but idle -
active_consumption- mB consumption of fuel on when the engine is on
and the vehicle moving (throttle > 0.01) -
consumptions- this is an optional JSON array, with an alterntive list
of (active) fuel consumptions based on the current fuel (secondary group)-
"<secondary_group>": <value>- see the example above
-
-
fuel_group- the fuel type this engine will run on, can be fine tuned to
request a secondary besides primary type (e.g.diesel:petrodieselinstead ofdiesel)
it can be an array with strings instead of a single value (e.g.["diesel", "petrol"])
Need help in something that is not in the wiki, or is not there yet? Got issues or crashes?
Or want to help expand the Wiki? We have a discord server! https://discord.gg/AkMAzaA