GetAmmoEffectTraitNumeric

< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

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

Syntax

(traitValue:float) GetAmmoEffectTraitNumeric ammoEffect:ref traitID:int{0-2}

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

GetAmmoEffectTraitNumeric AmmoEffect5mmDTReduction 0

Will return the effect type of AmmoEffect5mmDTReduction.

See Also