SetAmmoEffectTraitNumeric

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the value of an ammo effect's numeric trait (determined by traitID).

Syntax

[help]
(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%.

See Also