Advertisement
zSkullfox

Untitled

Apr 21st, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. _cat = "[FOX] test";
  2. [_cat, "test34444444", {
  3.  
  4. params [["_position", [0,0,0], [[]], 3], ["_object", objNull, [objNull]]];
  5.  
  6.  
  7.  
  8. outputObjects = [];
  9. {
  10. _object = _x;
  11.  
  12. if(alive _x)then{
  13.  
  14. systemChat str _x;
  15. _tmp = [];
  16. if(typeOf _object isKindOf "Man")then{
  17.  
  18. private _sideName = ["east", "west", "independent", "civilian"] select (side group _object call BIS_fnc_sideID);
  19. _tmp pushBack format["_grp_%1 = createGroup [%2, true];", _forEachIndex, _sideName];
  20. _tmp pushBack format["_object_%1 = _grp_%2 createUnit [%3, [0, 0, 0], [], 0, ""CAN_COLLIDE""];", _forEachIndex, _forEachIndex, str typeOf _object];
  21.  
  22. }else{
  23. _tmp pushBack format["_object_%1 = createVehicle [%2, [0, 0, 0], [], 0, %3];", _forEachIndex, str typeOf _object, str "CAN_COLLIDE" ];
  24. };
  25. _tmp pushBack format["_object_%1 setVectorDirAndUp %2;", _forEachIndex, [vectorDir _object, vectorUp _object]];
  26. _tmp pushBack format["_object_%1 setPosASL %2;", _forEachIndex, getPosASL _object];
  27.  
  28. outputObjects pushBack _tmp;
  29.  
  30. };
  31. } forEach curatorEditableObjects (getAssignedCuratorLogic player);
  32.  
  33. export = "";
  34. {
  35. {
  36. export = export + format["%1" + endl ,_x];
  37. } forEach _x;
  38.  
  39. } forEach outputObjects;
  40.  
  41. [
  42. "Export as SQF",
  43. [["EDIT:MULTI", "Text",export,5]],
  44. {
  45. systemchat "Done";
  46. },
  47. {},
  48. []
  49. ] call zen_dialog_fnc_create
  50.  
  51. }] call zen_custom_modules_fnc_register;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement