Skip to content

Get Owner

Leopold A-C edited this page Feb 4, 2021 · 6 revisions

Category: Objects

Description

Get the owner of the logic tree. Any object with the tree attached is considered an "owner". This node can be used to access instanced objects separately.
This works more universally than the Get Object node, because it does not look for objects by their name, but gets the owner object by accessing it through the attached logic bricks, which are unique for each object.

Note: If you plan on using logic nodes on instanced objects, USE THIS AND THE GET CHILD BY NAME NODE instead of Get Object or object selectors.

Example:
There's 2 instances of the same object with a logic tree attached in your scene. Each instance is running the logic tree, so for each instance, the result of Get Owner will be a different object.


Inputs

This node has no inputs.


Outputs

Owner Object

  • The object currently executing the tree.
Clone this wiki locally