Jump to content
Alert23

cameraView "GUNNER" (only scoped sights)

Recommended Posts

hello,

i have a script which i want to run only on scoped rifles and only if player uses scoped sight, is this possible?

right now i use this command:

(cameraOn == player) && (cameraView == "GUNNER")

but this also includes the none scoped sights, is there a way i could reduce it only to the scoped sight?

Share this post


Link to post
Share on other sites
3 minutes ago, Alert23 said:

hmm but the game has many different optics and its actually mod im creating where it should only work for guns while in scope view

 

isnt (cameraView == "GUNNER") that?

 

https://community.bistudio.com/wiki/cameraView

 

Share this post


Link to post
Share on other sites

i want the script only to run in this view:

Spoiler

tSGdMCUg.png

but it also runs in this view:

Spoiler

PRC1jWMR.png

anyway to achive this?

Share this post


Link to post
Share on other sites

Roughly, you can determine when an optic has a magnification >1 (so zoom)

My work around for magnification:

_magnification = 0.25/getObjectFOV player

Seems to work for BI scopes.

  • Like 2
  • Thanks 1

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

×