Jump to content

M. Monkey

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About M. Monkey

  • Rank
    Rookie
  1. M. Monkey

    object import

    I have tried but with no real success, I found that the 3den attribute rotation was set with pitch, roll, and yaw. So I used the BIS_fnc_getPitchBank to try and set the other two values for rotation however I must be doing something wrong as it only makes the rotation problem worse. _nul = [] spawn { _thread = execVM "mission.sqf"; waitUntil{ scriptDone _thread }; _newObjects = ( allMissionObjects "allvehicles" + allMissionObjects "all" ) - (all3DENEntities select 0); { _pos = getPosATL _x; _dir = getDir _x; _up = _x call BIS_fnc_getPitchBank; _object = typeOf _x; deleteVehicle _x; _newObj = create3DENEntity [ "Object", _object, _pos, true ]; _newObj set3DENAttribute [ "position", _pos ]; _newObj set3DENAttribute [ "rotation", [ _up, _dir ] ]; }forEach _newObjects; };
  2. M. Monkey

    object import

    Whenever I use this it messes up the rotation of some of my objects. For example I have piers that are inverted to make ceilings however these appear lower than they are supposed to and they are no longer upside down. Other than that it works wonders, thanks a lot.
  3. M. Monkey

    Import "sqf" to eden?

    Hi, I'm trying to import several thousand objects into the eden editor, and all i've got is an sqf. Their position and everything is all recorded like this where it creates a vehicle followed by setposASL and setVectorDirAndUp. Each and every single one is called _newObject, they all repeat right after each other creating a new vehicle for each new object. My question is how do i convert this to a create3denentity command and have them place in the same spot? The map their on is Stratis. _newObject = createVehicle ['OfficeTable_01_new_F', [1951.09,5702.63,1.90735e-006], [], 0, 'CAN_COLLIDE']; _newObject setPosASL [1951.09,5702.63,6.24668]; _newObject setVectorDirAndUp [[0.968601,-0.24862,0], [0,0,1]];
×