Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This script is a little tricky. Okay so first off i haven't tested it yet so if it doesn't work here's some reasons.
- 1. I didn't stick the "_VehicleRepo" as a global variable. To change that just remove the "_" before the local variable.
- 2. I hope you guys know how to use "addActions" because you won't be able to just use this without some form of key bind or addAction. Heres a link to BI Wiki for addActions if your really that new. "https://community.bistudio.com/wiki/addAction".
- 3. And the last thing is "TRUCK_CLASSNAME" just stick a vehicle class name in their. They can be found here. "http://wiki.7thcavalry.us/wiki/ARMA_3_Vehicles" any vehicle will work. But make sure you edit "attachTo" and "setVectorUp" to match your vehicles size.
- Enjoy guys,
- Veticus
- */
- /*
- ---------------
- Author: Veticus;
- ---------------
- Script: Repo.sqf;
- ---------------
- */
- DL_Repo_Main = {
- private ["_Repotruck", "_TargetVehicle", "_VehicleRepo"];
- _Repotruck = nearestObject [(getPos player), "TRUCK_CLASSNAME"];
- _TargetVehicle = cursorTarget;
- _VehicleRepo = false;
- if (_VehicleRepo isEqualTo false) then {
- player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
- sleep 3.5;
- _TargetVehicle attachTo [_Repotruck, [0, -6.8, -.55]];
- _TargetVehicle setVectorUp [0, -0.2, 2];
- _VehicleRepo = true;
- } else {
- player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
- sleep 3.5;
- detach _TargetVehicle;
- _TargetVehicle setVectorUp [0, 0, 1];
- _TargetVehicle setPosATL [getPosATL _TargetVehicle select 0, getPosATL _TargetVehicle select 1, 0];
- _VehicleRepo = false;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement