Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. private["_unit","_vdmer"];
  2. _unit = [_this,0,Objnull,[Objnull]] call BIS_fnc_param;
  3. _vdmer = [_this,1,Objnull,[Objnull]] call BIS_fnc_param;
  4. if(isNull _unit OR isNull _vdmer) exitWith {player allowDamage true; life_istazed = false;};
  5.  
  6. if(_vdmer isKindOf "Man" && alive player) then
  7. {
  8. if(!life_istazed) then
  9. {
  10. life_istazed = true;
  11. _obj = "Land_ClutterCutter_small_F" createVehicle (getPosATL _unit);
  12. _obj setPosATL (getPosATL _unit);
  13. [[player,"AinjPfalMstpSnonWnonDf_carried_fallwc"],"life_fnc_animSync",true,false] spawn life_fnc_MP;
  14. [[0,format[localize "STR_NOTF_Vdmed", _unit getVariable["realname",name _unit], _vdmer getVariable["realname",name _vdmer]]],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
  15. [[getPlayerUID _vdmer,name _vdmer,"13"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
  16. _unit attachTo [_obj,[0,0,0]];
  17. uiSleep 5;
  18. [[player,"amovppnemstpsraswrfldnon"],"life_fnc_animSync",true,false] spawn life_fnc_MP;
  19. _damage = damage player;
  20. _damage = _damage + 0.3;
  21. player setDamage (_damage);
  22. player say2d "cough";
  23. [] call life_fnc_hudUpdate;
  24. if(!(player getVariable["Escorting",false])) then {
  25. detach player;
  26. };
  27. life_istazed = false;
  28. player allowDamage true;
  29. disableUserInput false;
  30. };
  31. }
  32. else
  33. {
  34. _unit allowDamage true;
  35. life_istazed = false;
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement