From bc762b9877714971bb9c86e33ffa73df7e39e1d6 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Tue, 23 Jan 2018 23:20:56 +0000 Subject: [PATCH] install docs to Salvage Vehicle added. --- docs/VehicleSalvage/installation.md | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/VehicleSalvage/installation.md diff --git a/docs/VehicleSalvage/installation.md b/docs/VehicleSalvage/installation.md new file mode 100644 index 0000000..55d53c7 --- /dev/null +++ b/docs/VehicleSalvage/installation.md @@ -0,0 +1,38 @@ +# Installation + +Remember for this plugin to work you first need to install +* [Core]((https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md) + +## Client + +* Make sure the VehicleSalvage folder is present in mpmissions\missionname.mapname\ExAdClient + +* Goto "mpmissions\exile.\ExAdClient\CfgFunctions" and uncomment + +_From_ +```cpp + //#include "VehicleSalvage\CfgFunctions.cpp" +``` +_To_ +```cpp + #include "VehicleSalvage\CfgFunctions.cpp" +``` + +* In "config.cpp" find "CfgInteractionMenus" + +* Under CfgInteractionMenus you will see "class Car" + +* Add to the bottom of "class Car" menus this: + ```cpp + class ExAdSalvage: ExileAbstractAction + { + title = "ExAd Salvage Aircraft"; + condition = "(!(alive (ExileClientInteractionObject)))"; + action = "_this call ExAd_fnc_vehicleSalvage"; + }; + ``` +* Make sure it follows the formatting of the rest of the actions. + +* Repeat this to add it to "class Air", "class Boat" and "class Tank" if you have it. Vanilla servers do not have "class Tank" so you may need to add it yourself. + +ALL DONE! Enjoy :D \ No newline at end of file