contact

From Wiki of ZZT
Revision as of 02:46, 8 February 2021 by Rbts (talk | contribs) (Created page with "{{DISPLAYTITLE:contact}} '''contact''' is an internal object flag in ZZT-OOP. This flag is true for an object when it is standing directly next to the player, and false ot...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

contact is an internal object flag in ZZT-OOP. This flag is true for an object when it is standing directly next to the player, and false otherwise.

Usage Example

This object walks toward the player until it's standing next to them.

@object
#cycle 1

:loop
#if not contact ?seek
/i#loop