View Full Version : How to make a compass that points towards the NEAREST enemy?

11-28-2013, 12:50 AM
The title says it all. I know how to make a regular compass and make it point at a pre defined object. but how to make it point towards the nearest enemy?

12-01-2013, 10:09 PM
Under functions you should find a "Spatial relations" tab, which contains functions that return depending on how close the selected object is to something, how far to the left, etc.

12-04-2013, 07:11 PM
This can be pretty glitchy if you want it to be a constantly updated function,

Here is a tutorial world for it.