Difference between revisions of "SetAmmoEffectTraitNumeric"
Jump to navigation
Jump to search
imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Sets the value of an ammo effect's numeric trait (determined by <i>traitID</i>). |name = SetAmmoEffectTraitNumeric |returnType = traitV...") |
imported>Jazzisparis |
||
Line 34: | Line 34: | ||
SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 1 1 | SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 1 1 | ||
SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 2 0.8</pre> | SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 2 0.8</pre> | ||
Will set <i>AmmoEffect5mmDTReduction</i> to reduce weapon's spread by 20%. | Will set <i>AmmoEffect5mmDTReduction</i> to reduce the weapon's spread by 20%. | ||
}} | }} | ||
==See Also== | ==See Also== | ||
[[Category:Functions_(JIP)]] | [[Category:Functions_(JIP)]] |
Revision as of 20:30, 27 March 2015
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Sets the value of an ammo effect's numeric trait (determined by traitID).
Syntax
(traitValue:float) SetAmmoEffectTraitNumeric ammoEffect:ref traitID:int{0-2} newValue:float
Ammo Effect Numeric Trait IDs
0 Effect Type 1 Operation Type 2 Value
Effect Types:
0 Damage Mod 1 DR Mod 2 DT Mod 3 Spread Mod 4 Weapon Condition Mod 5 Fatigue Mod
Operation Types:
0 Add 1 Multiply 2 Subtract
Example
SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 0 3 SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 1 1 SetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 2 0.8
Will set AmmoEffect5mmDTReduction to reduce the weapon's spread by 20%.