Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _cat = "[FOX] test";
- [_cat, "test34444444", {
- params [["_position", [0,0,0], [[]], 3], ["_object", objNull, [objNull]]];
- outputObjects = [];
- {
- _object = _x;
- if(alive _x)then{
- systemChat str _x;
- _tmp = [];
- if(typeOf _object isKindOf "Man")then{
- private _sideName = ["east", "west", "independent", "civilian"] select (side group _object call BIS_fnc_sideID);
- _tmp pushBack format["_grp_%1 = createGroup [%2, true];", _forEachIndex, _sideName];
- _tmp pushBack format["_object_%1 = _grp_%2 createUnit [%3, [0, 0, 0], [], 0, ""CAN_COLLIDE""];", _forEachIndex, _forEachIndex, str typeOf _object];
- }else{
- _tmp pushBack format["_object_%1 = createVehicle [%2, [0, 0, 0], [], 0, %3];", _forEachIndex, str typeOf _object, str "CAN_COLLIDE" ];
- };
- _tmp pushBack format["_object_%1 setVectorDirAndUp %2;", _forEachIndex, [vectorDir _object, vectorUp _object]];
- _tmp pushBack format["_object_%1 setPosASL %2;", _forEachIndex, getPosASL _object];
- outputObjects pushBack _tmp;
- };
- } forEach curatorEditableObjects (getAssignedCuratorLogic player);
- export = "";
- {
- {
- export = export + format["%1" + endl ,_x];
- } forEach _x;
- } forEach outputObjects;
- [
- "Export as SQF",
- [["EDIT:MULTI", "Text",export,5]],
- {
- systemchat "Done";
- },
- {},
- []
- ] call zen_dialog_fnc_create
- }] call zen_custom_modules_fnc_register;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement