Files
MissionTemplate/framework/client/functions/fn_bindVehicleActions.sqf
hizumi ab28ed4e50
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 38s
Update fn_bindVehicleActions.sqf
remove now unneeded custom tire patching ace interaction
2024-04-19 00:01:14 -05:00

34 lines
709 B
Plaintext

if ( !hasInterface ) exitWith {};
_checkFuel =
[
"CheckFuel",
"Check Fuel",
"",
{
hint format ["Fuel: %1%2", floor (fuel _target *100), "%"];
},
{true}
] call ace_interact_menu_fnc_createAction;
["LandVehicle", 0, ["ACE_MainActions"], _checkFuel, true] call ace_interact_menu_fnc_addActionToClass;
_unflip =
[
"Unfuck",
"Flip Vehicle",
"",
{
_target setpos [(getpos _target) select 0,(getpos _target) select 1, 0.5];
_target setVectorUp surfaceNormal position _target;
},
{true}
] call ace_interact_menu_fnc_createAction;
["LandVehicle", 0, ["ACE_MainActions"], _unflip, true] call ace_interact_menu_fnc_addActionToClass;
diag_log text "[MILSIM] (client) vehicle actions bound";
nil;