Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. /**
  2.  * ExileServer_object_vehicle_event_onGetIn
  3.  *
  4.  * Exile Mod
  5.  * www.exilemod.com
  6.  * © 2015 Exile Mod Team
  7.  *
  8.  * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9.  * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10.  */
  11.  
  12. private["_vehicleObject","_Cycles","_veh","_pos"];
  13. _vehicleObject = _this select 0;
  14. if !(simulationEnabled _vehicleObject) then
  15. {
  16.     _vehicleObject enableSimulationGlobal true;
  17. };
  18.  
  19. _Cycles = ["Exile_Bike_OldBike","Exile_Bike_MountainBike"];
  20. _veh = _this select 0;
  21. if (typeOf (_veh) in _Cycles) then {   
  22.     _veh setVectorUp [0,0,1];
  23.     _pos = getPosATL _veh;
  24.     _pos set [2,(_pos select 2) + 0.9];
  25.     _veh setPosATL _pos;
  26. };
  27. true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement