GetContainer - ObjectReference

Member of: ObjectReference Script

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

SyntaxEdit

ObjectReference Function GetContainer() native

ParametersEdit

None.

Return ValueEdit

The container this reference is in, or None if not in a container

ExamplesEdit

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

See AlsoEdit