mNo edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Instruction_Top}} | ||
Using the signal register as an input set to an entity in the world and storing the distance value as a variable. | Using the signal register as an input set to an entity in the world and storing the distance value as a variable. | ||
Line 5: | Line 5: | ||
The "Distance" component takes a location based input (unit world location) and stores the distance from the that input to the unit your script is being run on in the result. This can be used identify how far one unit is away from another. | The "Distance" component takes a location based input (unit world location) and stores the distance from the that input to the unit your script is being run on in the result. This can be used identify how far one unit is away from another. | ||
{{Instruction_Bottom}} |
Latest revision as of 09:42, 1 August 2025
Using the signal register as an input set to an entity in the world and storing the distance value as a variable.
The "Distance" component takes a location based input (unit world location) and stores the distance from the that input to the unit your script is being run on in the result. This can be used identify how far one unit is away from another.
Instructions | |
---|---|
Unit | |
Move | |
Component | |
Flow | |
Math | |
Global |