Contact: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 02:46, 8 February 2021

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