Advertisement
Veticus

Arma 3* Vehicle Flip Script {Bay City}

Apr 19th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. // Created by νєтι¢υѕ. For Bay City Community.
  2. private ["_numberone", "_vehicleselect", "_veh", "_NamePlayer"];
  3. _numberone = _this select 1;
  4. _vehicleselect = nearestObjects [_numberone, ["Car"], 5];
  5. _NamePlayer = name player;
  6. if (count _vehicleselect > 0) then {
  7. _veh = (_vehicleselect select 0);
  8. };
  9. if (!isNil "_veh") then {
  10. if ({alive _x} count crew _veh == 0) then {
  11. hintSilent format ["%1: You vehicle is being flipped", _NamePlayer];
  12. player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
  13. sleep 4;
  14. _veh setVectorUp [0, 0, 1];
  15. _veh setPosATL [getPosATL _veh select 0, getPosATL _veh select 1, 0];
  16. hintSilent format ["%1: Vehicle Successfully flipped!", _NamePlayer];
  17. } else {
  18. hintSilent format ["%1: Their are still people in the vehicle", _NamePlayer];
  19. };
  20. } else {
  21. hintSilent format ["%1: Their is no vehicle in range currently!", _NamePlayer];
  22. };
  23.  
  24. // 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