Advertisement
tinboye

Untitled

Jan 20th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. {
  2. private[ "_pitch", "_bank" ];
  3. _x params[ "_objType", "_pos", [ "_dir", 0 ], [ "_ATL", 0 ], [ "_enabled", 1 ], [ "_up", 0 ], [ "_codes", [] ] ];
  4. _pos = call compile _pos;
  5. if ( _ATL isEqualTo -100 ) then {
  6. _pos set[ 2, _ATL ];
  7. _pos = ASLToATL _pos;
  8. };
  9. collect3DENHistory{
  10. _obj = create3DENEntity [ "Object", _objType, _pos, true ];
  11. if ( _up isEqualTo 0 ) then {
  12. _pitch = 0;
  13. _bank = 0;
  14. }else{
  15. _obj setVectorUp surfaceNormal getPosATLVisual _obj;
  16. _PB = _obj call BIS_fnc_getPitchBank;
  17. _pitch = _PB select 0;
  18. _bank = _PB select 1;
  19. };
  20. _obj set3DENAttribute [ "rotation", [ _pitch, _bank, _dir ] ];
  21. _obj set3DENAttribute [ "enableSimulation", _enabled isEqualTo 1 ];
  22. _obj set3DENAttribute [ "Init", format[ "{ call _x }foreach %1", _codes ] ];
  23. };
  24. }forEach[
  25. ["Land_CampingChair_V2_F","[14568.1, 16764.3, 0.084837]",208.182,-3.07901,1,0,[]]
  26. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement