Background for Fallout 4
Member of the Actor script
eventOnPlayerModArmorWeapon(FormakBaseObject, ObjectModakModBaseObject)

Description

Wiki Description

Event sent to the player when they modify armor or weapons.

Documentation Comment

Received when player mods a weapon or armor in the menu.


Parameters

  1. FormakBaseObject

    CK Wiki Description

    the base object item created after modification

  2. ObjectModakModBaseObject

    CK Wiki Description

    the base object used to do the modification


Examples

; Event is sent to the player
Event OnPlayerModArmorWeapon(Form akBaseObject, ObjectMod akModBaseObject)
  Debug.Trace(akBaseObject+ " created after using " + akModBaseObject)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnPlayerModArmorWeapon(Form akBaseObject, ObjectMod akModBaseObject)
    Debug.trace("Event received - OnPlayerModArmorWeapon: akBaseObject = " + akBaseObject + " akModBaseObject = " + akModBaseObject)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.