Advertisement
Veticus

Arma 3* Repair Vehicle Script {Bay City}

Apr 20th, 2014
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. // Created by νєтι¢υѕ. For Bay City Community.
  2. // As you may notice their not much difference between this script and the flip script. If you want to add a custom item that repaired the vehicle. Then you would have to go into more detail.
  3. private ["_numberone", "_numbertwo", "_vehicleselect", "_NamePlayer", "_veh"];
  4. _numberone = _this select 0;
  5. _numbertwo = _this select 1;
  6. _vehicleselect = nearestObjects [_numbertwo, ["Car", "Air", "Ship"], 5];
  7. _NamePlayer = name player;
  8. if (count _vehicleselect > 0) then {
  9. _veh = (_vehicleselect select 0);
  10. };
  11. if (!isNil "_veh") then {
  12. if ({alive _x} count crew _veh == 0) then {
  13. hintSilent format ["%1: Vehicle is being repaired", _NamePlayer];
  14. player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
  15. sleep 4;
  16. hintSilent format ["%1: Vehicle repaired", _NamePlayer];
  17. _veh setDamage 0;
  18. } else {
  19. hintSilent format ["%1: People in the vehicle!", _NamePlayer];
  20. };
  21. } else {
  22. hintSilent format ["%1: Their is no vehicle in range!", _NamePlayer];
  23. };
  24.  
  25. // TO ADD!: This script is run locally. You would have to implement the script into a public var or whatever you want it to do to run on other PC's
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement