Skip to content

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: yes

The 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 is fvtm: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:petrodiesel instead of diesel)
    it can be an array with strings instead of a single value (e.g. ["diesel", "petrol"])

Clone this wiki locally