SHARE
TWEET

Clean blood

a guest Sep 6th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. span class="re5"> globalRadioCustom = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "InnerThoughts", "InnerThoughts", []];
  2.  
  3.  
  4.  
  5. globalActionCleanBlood = ["Clean Blood","Clean Blood","",{
  6.     params["_interactObject"];
  7.     _bloodObjects = allSimpleObjects [ace_drop_1,ace_drop_2,ace_drop_3,ace_drop_4];
  8.         {
  9.             if ((_interactObject distance _x) < 1 ) then
  10.             {
  11.                 deleteVehicle _x;  
  12.             };
  13.         } forEach _bloodObjects;
  14.     globalRadioCustom radioChannelAdd [_player];
  15.     _player customChat [globalRadioCustom, "Oh boy, I love cleaning up blood..."];
  16.     globalRadioCustom radioChannelRemove [_player];    
  17.     deleteVehicle _target;
  18.  
  19. },{true},{},[_interactObject]] call ace_interact_menu_fnc_createAction;
  20. publicVariable "globalActionCleanBlood";
  21.  
  22.  
  23. _handle = [{
  24.  
  25.     _bloodObjects = allSimpleObjects [ace_drop_1,ace_drop_2,ace_drop_3,ace_drop_4];
  26.     {
  27.         _isBlood = _x getVariable ["bloodDropAction",0];
  28.         if (_isBlood == 0) then
  29.         {
  30.             _interactObject = "Land_HelipadEmpty_F" createVehicle (getPos _x);
  31.             _interactObject setPos (_x modelToWorld [0,0,0]);
  32.             [_interactObject, 0, ["ACE_MainActions"],globalActionCleanBlood] call ace_interact_menu_fnc_addActionToObject;
  33.             systemChat "Found blood";
  34.             _x setVariable ["bloodDropAction", 1, false];
  35.         };
  36.     } forEach _bloodObjects;
  37.    
  38. }, 10, []] call CBA_fnc_addPerFrameHandler;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top