Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. _checkForProne = {
  2. hint "checkforprone";
  3. _static = _this select 0;
  4. _player = _this select 2;
  5. _bbr = boundingBoxReal _static;
  6. _p1 = _bbr select 0;
  7. _p2 = _bbr select 1;
  8. _maxWidth = abs ((_p2 select 0) - (_p1 select 0));
  9. _maxLength = abs ((_p2 select 1) - (_p1 select 1));
  10. _maxHeight = abs ((_p2 select 2) - (_p1 select 2));
  11.  
  12. if (_maxheight > 2.8) then {
  13. _player switchMove "amovpknlmstpsraswrfldnon";
  14. } else {
  15. _player switchMove "amovppnemstpsraswrfldnon";
  16. };
  17. };
  18.  
  19.  
  20. player globalChat "Setting up sandbags...";
  21. player switchMove "AinvPknlMstpSnonWnonDnon_medic_1";
  22. player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
  23. sleep 8;
  24.  
  25. deleteVehicle (nearestObject [player, "ICE_emptySandbagsTimberStack"]);
  26. _static addEventHandler ["GetOut", {_this call _checkForProne}];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement