Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
443
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if !(vehicle player isEqualTo player) exitWith {babe_em_help setpos [0,0,0]};
  2.  
  3. _ins = lineIntersectsSurfaces [
  4. AGLToASL (player modelToWorld [0, 0, 1]),
  5. AGLToASL (player modelToWorld [0, 0, -0.2]),
  6. player,
  7. babe_em_help,
  8. true,
  9. 1,
  10. "GEOM",
  11. "NONE"
  12. ];
  13.  
  14. //XENO
  15. _liste_Objet_Exit = ["Land_CampingChair_V2_F","Land_RattanChair_01_F","Land_OfficeChair_01_F","Land_ChairPlastic_F","Land_ChairWood_F","Land_CampingChair_V1_F","Land_CampingChair_V2_white_F"];
  16.  
  17. if (_ins select 0 select 3 in _liste_Objet_Exit) exitwith {};
  18. //XENO
  19.  
  20. if (count _ins isEqualTo 0) exitWith {babe_em_help setpos [0,0,0]};
  21.  
  22. (_ins select 0) params ["_pos", "_no", "_obj"];
  23.  
  24. if (isNull _obj) exitWith {babe_em_help setpos [0,0,0]};
  25.  
  26. babe_em_help setMass 0;
  27. babe_em_help setPosASL _pos;
  28. babe_em_help setVectorUp _no;
  29. _obj disableCollisionWith babe_em_help;
Advertisement
RAW Paste Data Copied
Advertisement