Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /*
  2. * Author: Katalam
  3. * Children action for attaching stretcher
  4. *
  5. * Arguments:
  6. * 0: Stretcher <OBJECT>
  7. *
  8. * Return Value:
  9. * None
  10. *
  11. * Example:
  12. * [cursorTarget] call kat_aceMisc_fnc_attachStretcher;
  13. *
  14. * Public: No
  15. */
  16.  
  17. params [["_target", objNull, [objNull]]];
  18.  
  19. private _vehicles = nearestObjects [_target, ["Car", "Helicopters"], 20];
  20. private _actions = [];
  21.  
  22. {
  23. private _type = typeOf _x;
  24. private _name = getText (configFile >> "CfgVehicles" >> _type >> "displayName");
  25. private _uniqueName = format ["KAT_%1", _type];
  26. if (isClass (configFile >> "CfgVehicles" >> _type)) then { // >> "stretcherPos"
  27. _actions pushBack [
  28. [
  29. _uniqueName,
  30. _name,
  31. "",
  32. {
  33. diag_log true;
  34. },
  35. {true}
  36. ] call ace_interact_menu_fnc_createAction,
  37. [],
  38. _target
  39. ];
  40. } else {
  41. false;
  42. };
  43. } count _vehicles;
  44.  
  45. _actions;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement