Background for Starfield
Member of the Actor script
voidfunctionOpenInventory(boolabForceOpen=false, FormakFilter=NONE, boolabIncludeOnlyFromFilter=true)Native

Description

Wiki Description

Opens this actor's inventory as if the player were pick-pocketing them. Will only open inventory on player's teammates unless told to force it open.

Documentation Comment

Opens this actor's inventory, as if you were pick-pocketing them. Only works on teammates, or anyone if forced.


Parameters

  1. boolabForceOpen=false

    CK Wiki Description

    Whether to force open the inventory if the actor isn't the player's teammate.

    • Default:False
  2. FormakFilter=NONE

  3. boolabIncludeOnlyFromFilter=true


Examples

; Open a friend's inventory
Friend.OpenInventory()
; Force open an enemy's inventory
Enemy.OpenInventory(true)

Auto-Generated Example

bool myBool__abForceOpen
Form myForm__akFilter
bool myBool__abIncludeOnlyFromFilter

myActor__toCallFunctionOn.OpenInventory(myBool__abForceOpen, myForm__akFilter, myBool__abIncludeOnlyFromFilter)

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.