Background for Starfield
Member of the Actor script
voidfunctionEquipItem(FormakItem, boolabPreventRemoval=false, boolabSilent=false)Native

Description

Wiki Description

Forces this actor to equip the specified item, preventing removal if requested.

Documentation Comment

Forces this actor to equip the specified item, preventing removal if requested


Parameters

  1. FormakItem

    CK Wiki Description

    The item the actor should equip.

  2. boolabPreventRemoval=false

    CK Wiki Description

    If true, prevents the actor (or player) from removing the item.

    • Default:False
  3. boolabSilent=false

    CK Wiki Description

    Should the equip message be silenced?

    • Default:False

Examples

; Force the player to equip the tutu - but they can remove it
Game.GetPlayer().EquipItem(TutuProperty)
; Force Sally to equip the dress - but they can't remove it
Sally.EquipItem(DressProperty, true)

Auto-Generated Example

Form myForm__akItem
bool myBool__abPreventRemoval
bool myBool__abSilent

myActor__toCallFunctionOn.EquipItem(myForm__akItem, myBool__abPreventRemoval, myBool__abSilent)

Related Pages


Additional References

View this function’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.