Alert23 215 Posted October 16, 2020 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
gc8 970 Posted October 16, 2020 you can use this command to check the weapon items: https://community.bistudio.com/wiki/primaryWeaponItems Share this post Link to post Share on other sites
Alert23 215 Posted October 16, 2020 9 minutes ago, gc8 said: you can use this command to check the weapon items: https://community.bistudio.com/wiki/primaryWeaponItems 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 Share this post Link to post Share on other sites
gc8 970 Posted October 16, 2020 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
Alert23 215 Posted October 16, 2020 i want the script only to run in this view: Spoiler but it also runs in this view: Spoiler anyway to achive this? Share this post Link to post Share on other sites
pierremgi 4737 Posted October 17, 2020 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. 2 1 Share this post Link to post Share on other sites