Unblock

From AGI Wiki
Revision as of 18:25, 24 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''unblock''' command removes a block that was set up by the '''block''' command. == Syntax == unblock(); == Remarks == The '''block''' command adds an invisib...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The unblock command removes a block that was set up by the block command.

Syntax

unblock();

Remarks

The block command adds an invisible rectangle to the screen that act similarly to a conditional control line. The unblock command removes the block.

See the Blocks discussion in the Managing Obstacles topic for more information.

Possible Errors

None.

Example

Code:

<syntaxhighlight lang="agi"> block(25, 25, 100, 100); [ create a block ignore.block(o1); [ object 1 will ignore the block ... observe.block(o1); [ now object 1 will observe the block ... unblock(); [ remove the block </syntaxhighlight>

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 91 (0x5B hex)

See Also

block
ignore.blocks
observe.blocks