Jump to content

Recommended Posts

at KK there is a script
 

KK_fnc_trueZoom = { 
    ( 
        [0.5,0.5]  
        distance2D   
        worldToScreen  
        positionCameraToWorld  
        [0,3,4] 
    ) * ( 
        getResolution  
        select 5 
    ) / 2 
};
[] spawn {
onEachFrame { 
    hintSilent format [ 
        "CURRENT ZOOM: %1x", 
        round (call KK_fnc_trueZoom * 10) / 10 
    ] 
};
};

how to make disable zoom?

KK_fnc_trueZoom = {  
    ( [0.5,0.5] distance2D worldToScreen  positionCameraToWorld  [0,3,4] ) * ( getResolution  select 5 ) / 2  
}; 
[] spawn { 
onEachFrame {  
  
        if (round (call KK_fnc_trueZoom * 10) / 10 > 0.3) then {hintsilent "help disable zoom"}; 
}; 
};


probably need to disable some action camera or make a counter camera

KK_fnc_trueZoom = { 
    ( [0.5,0.5] distance2D worldToScreen  positionCameraToWorld  [0,3,4] ) * ( getResolution  select 5 ) / 2 
};
[] spawn {
onEachFrame { 
 
        if (round (call KK_fnc_trueZoom * 10) / 10 > 0.3) then {
		
		_camera = "camera" camCreate (positionCameraToWorld  [0,0,0]);
		_camera cameraEffect ["Fixed","BACK"];
		
		};
};
};

or
 

[] spawn {  
 waitUntil {inputAction "ZoomTemp" > 0};    
 _camera = "camera" camCreate (positionCameraToWorld  [0,0,0]); 
  _camera cameraEffect ["Fixed","FRONT TOP"];
};

 

  • Like 2

Share this post


Link to post
Share on other sites

left properly place the camera
 

[] spawn {  
while {true} do {
 waitUntil {inputAction "ZoomTemp" > 0};    
 _camera = "camera" camCreate (positionCameraToWorld  [0,0,0]); 
  _camera cameraEffect ["Fixed","FRONT TOP"];
 waitUntil {inputAction "ZoomTemp" == 0};
_camera cameraEffect ["TERMINATE","FRONT TOP"]; 
    camDestroy _camera;
};
};

 

Share this post


Link to post
Share on other sites

 

Share this post


Link to post
Share on other sites

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×