Jump to content

How can I check if a weapon has a scope from a weapon mod equipped or not, or if it has a scope by default?


Recommended Posts

This is probably the wrong forum, so sorry if it is.

 

Hello, I am making a mod for new vegas that allows you to zoom your view in regardless of what you're equipped with(unless it's scoped by default), if you are aiming or not or have your weapon holstered. So far, it works very similarly to the zoom button in the arma series. However, weapons that have scopes aren't able to zoom in while aiming, instead they lock to a certain FOV. This isn't the problem though. Weapons that have scopes that come from weapon mods gain this fov even if they don't have the scope equipped. Does anyone know if there's a way to check if a weapon has a certain weapon mod equipped? I've done some research on some NVSE functions and found :

GetEquippedWeaponModFlags,

GetWeaponItemModEffect,

GetWeaponItemModValue1,

GetWeaponItemModValue2,

 

But I could not find any good examples on how they're supposed to be properly used. I am pretty new to scripting so getting this zoom thing to work so far has been a pretty large step to me. Any help on this subject would be appreciated. :D

 

EDIT: I have figured it out, so, disregard everything in the text above.

Edited by CasualNinji
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...