farthest object
Details
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
Description
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]
or
WHEN [detect][farthestobject] DO [display][it][above]
or
WHEN [all collidable objects][farthest object] DO [display][it][above]
Modifiers
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]