zSkullfox

Untitled

Jan 5th, 2019
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. /*
  2. Author: Phil aka Skullfox
  3.  
  4. Parameter(s):
  5. 0 Object used as relative dummy
  6. 1 User
  7. 2 unit affacted array
  8. 3 radius
  9.  
  10. Testing
  11. [_object,player,[player]] execVM "xxx.sqf";
  12. Addaction
  13. this addaction["Use",{
  14. params ["_target", "_caller", "_actionId", "_arguments"];
  15. [_target,_caller,[player]] execVM "xxx.sqf";
  16. }];
  17. */
  18.  
  19. _target = param[0,objNull];
  20. _caller = param[1,objNull];
  21. _affacted = param[2,[]];
  22. _radius = param[3,7];
  23.  
  24. _array = nearestObjects [_target, ["Man"], _radius];
  25. if(_array isEqualTo [])exitWith{};
  26.  
  27. _effect = {
  28. _handle = ppEffectCreate ["radialBlur",100];
  29. _handle ppEffectEnable true;
  30. _handle ppEffectAdjust [0.04,0.05,0.35,0.2];
  31. _handle ppEffectCommit 1;
  32. waitUntil {ppEffectCommitted _handle};
  33. uiSleep 1;
  34. _handle ppEffectAdjust [0.0,0.0,0,0];
  35. _handle ppEffectCommit 0.5;
  36. waitUntil {ppEffectCommitted _handle};
  37. _handle ppEffectEnable false;
  38. ppEffectDestroy _handle;
  39. };
  40.  
  41. {
  42. if(_x in _affacted)then{
  43. if(isPlayer _x)then{
  44. [[],_effect]remoteExec["BIS_fnc_spawn",owner _x];
  45. };
  46. _x setVelocity [(sin (getDir _caller))*3, (cos (getDir _caller))*3, 3];
  47. };
  48. } forEach _array;
Advertisement
Add Comment
Please, Sign In to add comment