$CloneModifierFloat:

From GECK
Jump to: navigation, search

Weapon Smith

Description

Defines a float Modifier for a weapon mod. "functions" here, are plugin functions with the Get/Set prefix removed from the name. Any value function that follows this syntax for its arguments will work:

Function value:int weapon:baseform

Most NVSE functions in the Weapons Function Category will work.

Syntax

$CloneModifierFloat: function:ref value:float

Example

;Inside "WeaponAttachments\MyGlobalAttachments.ini"

   $EditorID: MyBarrelAttachment
   $Name: Long Barrel
   $CloneModifierFloat: AttackDamage -5

Long Barrel now reduces weapon damage by 5. the function "AttackDamage" here, is SetAttackDamage/GetAttackDamage with their set/get prefix removed. You can also use Damage for short: $CloneModifierFloat: Damage 5

Notes

  • Clone Float Modifiers stack, and are re-evaluated every time an attachment is attached/removed from the weapon.
  • These modifiers don't show up in the pipboy.

See Also