Background for Fallout 4
Member of the ObjectReference script

Description

Wiki Description

Returns the container this reference is in, if any. (Returns None if not in a container)

Documentation Comment

Returns the container this reference is in - if any


Caveats


Examples

if (GetContainer() == Game.GetPlayer())
  Debug.Trace("We're what the player has in his pocketses...")
endIf

Auto-Generated Example

ObjectReference returnedValue = myObjectReference__toCallFunctionOn.GetContainer()

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.