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 |