Jump to content


Hi all, Ive been looking for a while now for a vehicle flip script for a single player.

Ive tried stuff ive used on previous servers but its not allowing the option so im guessing epoch has something that interferes with it.

If anyone knows of a simple script to allow players to do this could you link it to me please,

Thanks in advance.

PS. Im aware the jacks flip vehicles but I actually  find this to be incredibly painstaking unless theirs a trick to it.

Share this post

Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 1

And here is a better solution, now using the dynaMenu and checking that the vehicle is unlocked and you were the last driver (thus dealing with the issue of object locality). All changes are in the mission file.

Add the following to epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp:

// Flip Vehicle
class flip_vic
	condition = "dyna_isVehicle && !dyna_locked";
	action = "[dyna_cursorTarget] call FlipVic;";
	icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_upgrade.paa";
	tooltip = "Flip Vehicle";

Add a script in the folder where you store your custom ones, for example custom/, called FlipVehicle.sqf with the following contents:

private ["_target"];

_target = _this select 0;

if (local _target) then {
	_target setVectorUp [0, 0, 1];
	["Flipped vehicle",5] call epoch_message;
} else {
	["You were not the driver of this vehicle",5] call epoch_message;

Add the following lines into your mission's init.sqf replacing the script's folder with where ever you put yours:

if(hasInterface) then{
	FlipVic  = compileFinal  preprocessFileLineNumbers "custom\FlipVehicle.sqf";

RePBO the mission, upload to the server...

Share this post

Link to post
Share on other sites
  • 0

@webbieAt a very simplistic level, add a script called custom/flip_vehicle.sqf with the following code:

_target = cursorTarget;

if((!isNull _target) && {alive _target} && {_target isKindOf 'Landvehicle' || _target isKindOf 'Air' || _target isKindOf 'Ship'})then {
	_target setVectorUp [0, 0, 1];
	['Flipped vehicle!',0,0.7,2,0] spawn bis_fnc_dynamictext;

Add the following line to initPlayerLocal.sqf in the root of your mission file:

	flipvic = player addAction ["<t color=""#F8FF24"">" +"Flip Vehicle","custom\flip_vehicle.sqf","",1,false,false,"",""];	

You now have a scroll wheel action to flip a vehicle. 

Will add some code to check you are the driver (which as an aside also handles the locality issue in MP) and post an update later. 

Share this post

Link to post
Share on other sites
  • 0

Heya Grahame.

would the first instruction - That is an hpp i'm looking into right not sqf?

Add the following to epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.sqf: 

Add the following to epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By FG_Trap
      Made this in my free time awhile ago thought id make it public.
      Right Alt is the key to open the menu.
      Install instructions are inside the download.
      here is a picture of the server menu
    • By lordacus
      so i have been making a server between trying to get my provider to update their mods section. after getting this don i found the server with epoch and infistar were conflicting each other such as: when joining i can use infistar but when i press f9 or i to enter my inventory or f10 for the mobile pad it then conflicts (i think) infistar and i can no longer use it. any ideas on how to stop this
    • By vbawol
      Open world survival mod set just two years after the mass extinction of billions of people. Those that remain are left with remnants of a once technological society. Try to survive, build, or explore your way through the harsh dynamic environment.
      Powerful persistence framework for Arma 3 with native Windows and Linux dedicated server support. Fully configurable script based security checks. Base Building re-envisioned for Arma 3 PhysX. Persistent secure and insecure storage devices. Upgradeable locking doors. Barter based economy and trading systems backed a single currency ¤ called "Krypto". Hostile Environment with several different types of antagonists, Air and Water temperature extremes, and Earthquakes. Hunting, Fishing, Tame Dogs, Explore & Loot: Wrecked ships, Abandoned vehicles and buildings, Perform task based missions and more! Open source APL-SA Epoch Survival MP gamemode. Open source APL-SA Modders resource configs and Class List. Assets can be used as a mod dependency on Steam workshop.
    • By Achef
      So I recently started up in a new host and haven't gotten to make the server run, found that a ca/modules bis_fnc issue is recurring but doesn't affect players when running coop missions like the default arma 2 oa ones, but when trying with Epoch hive won't connect/start despite being configured.
      Hive error
      Meanwhile at line 23...
      I'm still bad with Pastebin, sorry.
      This error has been chasing me for 2 days now
    • By WeepiestLem0n
      So I've been wanting to create a private ArmA 2 DayZ Epoch server for a bunch of my mates to play on, however I dont have a dedicated machine and want to run it on my PC. So I looked at the server download files on the GitHub page and followed the ReadMe, however I absolutely cannot figure out how to get the MySQL server and DB set up. I have downloaded MySQL Server on my PC and created the admin role, root passwords and ran it as a windows service. I now have no clue how to create the database and am wondering if anyone can help me set this up or let me know if I've done anything wrong. 

      I can add on Steam or Discord if need be for convenience.
  • Advertisement
  • Supporters
  • Discord

  • Create New...