Instructions/Get Self: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational)
 
Line 3: Line 3:
==== Description ====
==== Description ====


 
Gets self.
==== Uses ====
==== Uses ====


 
Captures the owner of the Behavior Controller into a register. This is useful in cases where you desire to check if a signal is referring to the current entity or to pass the current entity in a signal.


==== Similar Instructions ====
==== Similar Instructions ====

Latest revision as of 05:54, 17 September 2023


Get Self
     
     Gets the value of the Unit executing the behavior
Lua ID get_self
Category Math
Icon Set Register.png
Argument One: Type Output
Argument One: Name Result



Description[edit | edit source]

Gets self.

Uses[edit | edit source]

Captures the owner of the Behavior Controller into a register. This is useful in cases where you desire to check if a signal is referring to the current entity or to pass the current entity in a signal.

Similar Instructions[edit | edit source]