Background for Fallout 4
Member of the Actor script
eventOnItemUnequipped(FormakBaseObject, ObjectReferenceakReference)

Description

Wiki Description

Event called when the actor unequips an object.

Documentation Comment

Event received when this actor unequips something - akReference may be None if object is not persistent


Caveats

CK Wiki - Notes

  • Using potions will fire this event.

Parameters

FormakBaseObject

CK Wiki Description

The base object the actor just unequipped.

ObjectReferenceakReference

CK Wiki Description

The reference the actor just unequipped, if the reference is persistent. Otherwise, None.


Examples

Event OnItemUnequipped(Form akBaseObject, ObjectReference akReference)
  if akBaseObject as Armor
    Debug.Trace("This actor just unequipped a piece of armor!")
  endIf
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnItemUnequipped(Form akBaseObject, ObjectReference akReference)
    Debug.trace("Event received - OnItemUnequipped: akBaseObject = " + akBaseObject + " akReference = " + akReference)
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.