farthest object

farthest object



Kode wheel segment Sensors
Style Object variable and sensor
Modifiers None
Primarily WHEN/DO Both
Pre-made brains that use it Enemy brains

Sensors > farthest object



This is a sensor tile. It can be used on its own to determine the farthest object on the entire map (cannot identify terrain, only props and characters) or paired with a sensor which defines it further (for example nearest object that the player can see, or is in the detect sphere), or a standard object set  (does not work with custom object sets).


Example Code


WHEN [farthest object] DO [display][it][above]


WHEN [detect][farthestobject] DO [display][it][above]


WHEN [all collidable objects][farthest object] DO [display][it][above]


from: By default it will use [me] as the point of origin, however you can change it with IWP to another object

WHEN [farthest object][from][IWP:door]

Other Uses

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: