Jump to content

Question

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.

Guest
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.

Loading...

  • Similar Content

    • By Vladick
      BSBS Server IP: 216.244.93.103:7802
      Website: https://bsbsepoch.000webhostapp.com/
      Discord: https://discord.gg/PVn8PvG
      Server Features:
      PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
    • By vbawol
      Arma 3 Epoch 1.1 has been released!
      Server Files:
      https://github.com/EpochModTeam/Epoch/archive/1.1.0.1195.zip
      File Changes:
      https://github.com/EpochModTeam/Epoch/pull/969/files
      Client Files
      https://github.com/EpochModTeam/EpochCore/releases/download/1.1.0.1194/Epoch_Client_1.1.0.0.zip
      Changelog:
      Added
      Plant Spawner: vehicle object for sunflower. @Helion4 MoneyDrop Event: Random Money lump with Mapmarker (like Plants) @he-man Examples for Vehicle upgrades for Server Admins into CfgVehicleUpgrades.hpp @he-man Make Lighter refillable at Fuel-Sources (Gasstations / Vehicles) @he-man Make Trader more configurable in epochconfig.hpp @he-man Added Examples for Batchfiles to control Server Restarts @DirtySanchez default pops for "center" marker @awol More map supports @awol Lighter is needed to imflame fires @DirtySanchez FireExtinguisher is needed to "put our fire" on Burn Barrel @DirtySanchez Rope is needed for SlingLoad (get back on release) @DirtySanchez R3F compatibility for SlingLoad @DirtySanchez Hints while using Vehicle Repair (MultiGun) @he-man Config to completely disable Simulation for BaseParts (if not needed) @he-man Made Radiation configureable by cfgepochclient.hpp @raymix Hints for lock / unlock Vehicles / Storages @he-man Nuisance multiplicator in cfgepochclient.hpp @he-man Reduce rads over time at cost of immunity @raymix Wearable Male & Female wearable full radiation suit @Helion4 December seasonal items (Santa hat / Snowman) @Helion4 Autorun function (suggested by Ghostrider) @he-man Default Key is "W" You can change the key in EPOCH ESC Menu If choosen key is same as "moveforward" (default), you have to 2x tap it, else you only have to 1x tap it If your legs are broken, you get a hint "can not autorun - legs are broken" If the terrain is too steep, you only walk in AutoRun Inside Water, you can not Autorun Helper 3D-Icon + Line on the part, where element is snapped on (while Base-Building) @he-man Config in cfgepochclient.hpp to block ATM's in Plotpole range @he-man Power Sword @helion Fixed
      False BE kicks since Arma 3 1.80 update. Nightlight now also follow players inside Vehicles @he-man Fixed fault disabled DynamicDebris @morgoth0 SERVER_VARS (BaseSpawn) was not saved on revive @morgoth0 Without Advanced Vehicle Repair, Vehicle upgrade was not available @he-man Base Storages could be deleted if near Loot containers were auto-deleted @he-man Some Tarp Loot was spawned under the Floor @he-man Reworked wall check by getting out of Vehicles @he-man Garden Plot had no physical ground @Helion4 Some Vehicles were missing in EPOCH Admin Spawn Menu @he-man Changed
      RCon Port is now set to 2307 by default since changes in A3 1.78 prevent use of 2306. @awol SnapPoints for Building objects (especially full / half / quarter Floors) @he-man Some performance tweaks Inventory will be opened automatically, if "you found something" @awol EPOCH Events reworked (Markers will change if players near / event looted) @DirtySanchez Traders will no longer refill sold magazines @he-man Magazines will automatic be repacked in Trader First the trader offers full magazines If no full magazine is available, the Trader offer the last not full magazine Not full magazines are colored: Yellow (nearly full) -> Red (nearly empty) You also get a Tooltip, how much bullets left in magazine The prices are calculated by the left bullets in the magazine Increased snap-distance for Foundations (much easier to find snap positions) @he-man Reworked and added EPOCH Vehicle Classes @he-man Each upgrade increase Speed, Torque, Fuel, Terrainbehaviour, Load and Armor Hatchback >= lvl2 will no longer stuck in forests Added M900 forced without Backseats -> "C_Heli_Light_01_civil_2seat_EPOCH" Added M900 forced with Backseats -> "C_Heli_Light_01_civil_4seat_EPOCH" The Random M900 will also stay available -> "C_Heli_Light_01_civil_EPOCH" Added very low EPOCH variants of VTOL and Xi'an (eventually we have to change them with the next update a bit) Added Door-Animations to some Vehicles by GetIn / GetOut
    • 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.
      https://github.com/NWDZ-Trapxxgods/traps-menu
       
       
      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.
      Features
      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.
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...