Search the Community
Showing results for tags 'fuel'.
Found 4 results
-
Hi all! I have this simple script of fuel consumption working in EDEN editor pretty well: _veh = vehicle player; _rate = 0.003 ; _loadMultiplier = 0.003 ; _tooSlowRate = 0.004 ; _tooFastRate = 0.008 ; _speedMult = 0; while {true} do { if ((alive _veh) and (_veh != player) and (isengineon _veh) and ((fuel _veh) > 0)) then { _crew = count( crew _veh); _load = _crew * _loadMultiplier; _speed = speed _veh; if(_speed < 30 ) then { _speedMult = _tooSlowRate; }; if(_speed > 90 ) then { _speedMult = _tooFastRate; }; _realLoad = _rate + _load + _speedMult; _veh setFuel ( (fuel _veh) - _realLoad); }; sleep 5; }; But it's not work on dedi server(( Can anyone help with this? P.S. Server mod: AltisLife 4.4r4, if it mean something... Tryed both - server and client sides...
-
Fox Refuel | Ace³ Hey, this addon adds the ability to refuel your vehicle with the canister. Why i made this addon ? We use a addon in our clan which calculates the fuel consumption based on the players and the driving speed of the vehicle (public release wip). More fat guys in the humvee, more fuel consumption :P, # Adds a canister to every vehicle based on class Car_F. # transfer fuel and check canister content via Ace³ interaction. # setVar for missionmakers to change fuel status. # Download include the addon, sample mission and sourcecode for self compiling. Wiki -> Link Video & images:
-
Due to 3den enhanced editor allows to set fuel amount in liters (fuel cargo volume)in vehicle attributes and due to there is, for example, static wagon tanker (Land_wagon_tanker is classname) who operates as refueling point, I am searching for a way to refuel that somehow. -Situation on the field looks like: There is transport base sector with those wagons installed and every of them have working refueling ACE system. There are trucks who need to enter this base and transports fuel on the field to helicopters, boats and other vehicles involved in separate operations accros the map. Once the truck cistern or wagon volume of fuel is depleted, is there a way to refuel that? -Setups and tried solutions: 1. Trigger activated by radio Alpha onAct: MyFuelTruck setFuelCargo 1; (don't work-it stays the number of liters what I put in editor 1000 and if I refuel some vehicle with, for example 100 litres there is 900 left in truck/wagon due to I set it to 1000) then I fire the mentioned trigger or in debug console put this setFuelCargo 1; or MyFuelTruck setFuelCargo 1 ; while sitting it that vehicle - nothing happens. (not added fuel in cistern tank). 2. All trucks have correct variable names same as ones in the onAct field of trigger 3. I know that I can place 10000 liters in Fuel Cargo Volume field and be good with fuel for upcoming 10 years but I search for some realistic environment of that base and also set up some addAction things which moves wagons by line of rails from big fuel reservoars to station logistical points in the middle of the base to simulate logistical operations inside base so I need refueling system to set up somehow. Thanks guys I hope I am writte this understandably.
- 16 replies
-
- 1
-
- fuel
- setfuelcargo
-
(and 3 more)
Tagged with:
-
//-Fuel-\\ Hello my friends, heres a small addon that i created some time ago. DevSite What it does ? It increases the fuel consumption for all vehicles based on class Car_F. Requirements: CBA Features: Easy configuration via variables ✔ More passengers, more fuel consumption ✔ Check for road, change values for consumption ✖ (will be in next major release) You can change the consumption via setVariable fox_fuel_settings_rate // default consumption 0.00010 fox_fuel_settings_loadMultiplier // crew multiplier 0.00005; fox_fuel_settings_tooFastRate // malus for driving too fast 0.00015 fox_fuel_settings_tooSlowRate // malus for driving to slow 0.00005 Change back to default use: vehicle setVariable ["fox_fuel_settings_XXX", getNumber (configFile >> "fox_fuel_settings" >> "XXX"), TRUE]; Debug: FOX_FUEL_DEV = TRUE Download: @fox_fuel_release_1_0.zip Permission for reuplaod: All except SteamWorkshop