Jump to content

Modifying held weapons with FOSE


Abesh

Recommended Posts

I have a plan for a really neat mod, but I need to figure out some FOSE functions. Namely, I want to figure out a script that takes a look at the weapon you are holding, saves its AnimMult (using GetWeaponAnimMult), then modifies it to be much faster with SetWeaponAnimMult. Afterwards, I want to switch back to the original multiplier by calling the variable saved earlier. However, I can't seem to get the format down. It doesn't even actually have to be AnimMult, any other FOSE function of the same type would do, such as changing the ammo type on the fly or etc. Anyone have any tips?
Link to comment
Share on other sites

I have a plan for a really neat mod, but I need to figure out some FOSE functions. Namely, I want to figure out a script that takes a look at the weapon you are holding, saves its AnimMult (using GetWeaponAnimMult), then modifies it to be much faster with SetWeaponAnimMult. Afterwards, I want to switch back to the original multiplier by calling the variable saved earlier. However, I can't seem to get the format down. It doesn't even actually have to be AnimMult, any other FOSE function of the same type would do, such as changing the ammo type on the fly or etc. Anyone have any tips?

 

I got this to work using the weapon health function, but only one way, namely that I can set the health but not change it back. Any examples of mods using something similar?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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