$CloneModifierRef:

From GECK
Jump to: navigation, search

Weapon Smith

Description

Defines a Reference 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 form:ref weapon:baseform

Most NVSE functions in the Weapons Function Category will work.

Syntax

$CloneModifierRef: Function:ref EditorID:ref

Example

;Inside "WeaponAttachments\MyGlobalAttachments.ini"

   $EditorID: MyReceiverAttachment
   $Name: Big Receiver
   $CloneModifierRef: WeaponProjectile MyProjectile

Big Receiver now changes the weapon projectile to MyProjectile. The function "WeaponProjectile" here, is SetWeaponProjectile/GetWeaponProjectile with their set/get prefix removed.

Notes

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

See Also