Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- private[ "_pitch", "_bank" ];
- _x params[ "_objType", "_pos", [ "_dir", 0 ], [ "_ATL", 0 ], [ "_enabled", 1 ], [ "_up", 0 ], [ "_codes", [] ] ];
- _pos = call compile _pos;
- if ( _ATL isEqualTo -100 ) then {
- _pos set[ 2, _ATL ];
- _pos = ASLToATL _pos;
- };
- collect3DENHistory{
- _obj = create3DENEntity [ "Object", _objType, _pos, true ];
- if ( _up isEqualTo 0 ) then {
- _pitch = 0;
- _bank = 0;
- }else{
- _obj setVectorUp surfaceNormal getPosATLVisual _obj;
- _PB = _obj call BIS_fnc_getPitchBank;
- _pitch = _PB select 0;
- _bank = _PB select 1;
- };
- _obj set3DENAttribute [ "rotation", [ _pitch, _bank, _dir ] ];
- _obj set3DENAttribute [ "enableSimulation", _enabled isEqualTo 1 ];
- _obj set3DENAttribute [ "Init", format[ "{ call _x }foreach %1", _codes ] ];
- };
- }forEach[
- ["Land_CampingChair_V2_F","[14568.1, 16764.3, 0.084837]",208.182,-3.07901,1,0,[]]
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement