Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. /*
  2. STILL WIP!!!!!!
  3.  
  4. Aufruf bspw. in init.sqf
  5. {
  6. if (side _x == east) then {
  7. [_x] call compile preprocessFileLineNumbers "fn_knowDown.sqf"
  8. }
  9. } foreach AllUnits;
  10.  
  11. oder:
  12. [VarNameDesTypsDerNiedergeschlagenWerdenSoll] call compile preprocessFileLineNumbers "fn_knowDown.sqf";
  13.  
  14. */
  15.  
  16. _object = _this select 0;
  17. /// Action
  18. _action_hit = [
  19. "Knock Down",
  20. "Knock Down",
  21. "",
  22. {
  23. Params ["_target", "_player", "_actionParams"];
  24. // Platzhalter
  25. [0, "BLACK", 0, 1] call BIS_fnc_faceEffect;
  26.  
  27.  
  28. // Sound for "Everybody"
  29. [_player, ["pruegel", 5, 5]] remoteExecCall ["say3d", 0];
  30.  
  31. //
  32. //_target setDammage 1;
  33. _target setUnconscious true;
  34.  
  35. // Platzhalter
  36. [1, "BLACK", 0, 1] call BIS_fnc_faceEffect;
  37.  
  38. },
  39. {
  40. true
  41. },
  42. {
  43. },
  44. [
  45. ],
  46. [0,0,0],
  47. 150
  48. ] call ace_interact_menu_fnc_createAction;
  49. [_object, 0, ["ACE_MainActions"], _action_hit] call ace_interact_menu_fnc_addActionToObject;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement