GetContainer - ObjectReference

Revision as of 16:19, 2 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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