Jump to content
beako

How to enable/disable Optics function with holding seconf mouse button

Recommended Posts

Hi ALL,

 

Is there a way yet to disable Optics when pressing the RMB?

 

I'm using the following to assign a value to the RMB that triggers a function, but unfortunately it also causes the player to use their optics. I would like to temporarily disable optics when triggering this function and reenable it after.

_mouseM  = (findDisplay 46) displayAddEventHandler ["MouseButtonDown", "if (_this select 1 == 1) then {missionnamespace setvariable ['place',true]};"];

 

Share this post


Link to post
Share on other sites

cameraView and switchCamera should help.

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

×