ProtossMaster
New Member
On lingor island you can have your vehicle automatically refilled at gas tanks. Is it possible to implement this into chernarus?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yeah ill take a lookI think it is done in the mission file but not sure. Might want to look through the lingor mission file and see if you can copy over.
makes sense why you dont place them at rural tanks. Ill explore this option aswell.There is a workaround, not the most elegant but it works. There is an item you plop down in the editor - I think it is an ammo box - that automatically refuels a vehicle. The ammo boxes don't function in any way for storage or have any weapons in them but they serve a purpose to refuel. I could imagine you put them down at the refuel points you want, maybe the gas stations auto refuel, but the rural tanks require gas cans.
this and ((getpos (thislist select 0)) select 2 < 1)
rest of the script here:_xhandle= [(thislist select 0)] execVM "scripts\x_reload.sqf";
Create a trigger (blufor present)
Condition:
this and ((getpos (thislist select 0)) select 2 < 1)OnAct:
_xhandle= [(thislist select 0)] execVM "scripts\x_reload.sqf";
// by Xeno Edited by MattzFiber for DayZ
private ["_config","_count","_i","_magazines","_object","_type","_type_name"];
_object = _this select 0;
_type = typeof _object;
if (_object isKindOf "ParachuteBase") exitWith {};
if (isNil "x_reload_time_factor") then {x_reload_time_factor = 1;};
if (!alive _object) exitWith {};
_object setFuel 0;
_type_name = typeOf _object;
_object vehicleChat format ["Filling %1... Please wait...", _type];
// _magazines = getArray(configFile >> "CfgVehicles" >> _type >> "magazines");
sleep x_reload_time_factor;
if (!alive _object) exitWith {};
_object vehicleChat "Repairing...";
_object setDamage 0;
sleep x_reload_time_factor;
if (!alive _object) exitWith {};
_object vehicleChat "Refueling...";
while {fuel _object < 0.99} do {
//_object setFuel ((fuel _vehicle + 0.1) min 1);
_object setFuel 1;
sleep 0.01;
};
sleep x_reload_time_factor;
if (!alive _object) exitWith {};
_object vehicleChat format ["%1 is ready...", _type_name];
if (true) exitWith {};