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.
Think I missed something somewhere...everything works except that the vehicle I'm siphoning from doesn't have its fuel reduced...basically stays at the same fuel level.
ok it works so far...
i have the salvation mod too on my server
and the menu of salvation is blue...
so how can i change the text color of siphon also to blue in the scroll menu?
I'm sure there is, I cant remember where I saw someone do this. Maybe the Strip vehicles script?
he has colored it... but without the variables you have used...fn_damageActions.sqf
Code://CAN WE SIPHON THE OBJECT? if ((fuel _unit > 0) and _hasJerryE) then { r_action = true; _action = _unit addAction [("<t color=""#FF9800"">" + ("Siphon Fuel") + "</t>"),"siphon\siphon.sqf",[_unit], 0, true, true, "", "'ItemJerrycanEmpty' in magazines player"]; r_player_actions set [count r_player_actions,_action]; };
From R4ZoR49 1.7.6 Github.i think i may have worked out what my problem is...
with dayz.st i dont have access to fn_damageActions.sqf, i created a file with this username and pasted in the code provided. After having a look at fr1nks file it turns out that there should be a lot more code in that file lol...
could someone post a vanilla copy of the file for me please
fnc_usec_damageActions = compile preprocessFileLineNumbers "fixes\fn_damageActions.sqf";
_hasJerryE = "ItemJerrycanEmpty" in magazines player;
...
_action = _unit addAction [format[localize "Siphon Fuel From %1",_typeVeh], "fixes\siphon.sqf",[_unit], 0, true, true, "", "'ItemJerrycanEmpty' in magazines player"];
_action = _unit addAction [("<t color=""#FF9800"">" + ("Siphon Fuel") + "</t>"),"fixes\siphon.sqf",[_unit], 0, true, true, "", "'ItemJerrycanEmpty' in magazines player"];
[format[localize "<t color='#0096ff'>str_actions_siphon_1</t>",_typeVeh]