SetLineBlocking

From Eternity Wiki
Revision as of 15:26, 4 May 2026 by Printz (talk | contribs) (Created page with "{{ACSFunction|description=Changes one or more lines' blocking properties by one of the given presets. |usage=''void'' '''SetLineBlocking'''(''int'' ''tag'', ''int'' ''block'') |parameters= *''tag'': tag of linedefs to affect. If 0, change the activating line. *''block'': one of the following options: :*'''BLOCK_NOTHING''' or 0: remove all involved blocking flags (see below); :*'''BLOCK_CREATURES''' or 1: sets the classic '''blocking''' ("impassable") flag, which blocks a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Changes one or more lines' blocking properties by one of the given presets.

Usage[edit]

void SetLineBlocking(int tag, int block)

Parameters[edit]

  • tag: tag of linedefs to affect. If 0, change the activating line.
  • block: one of the following options:
  • BLOCK_NOTHING or 0: remove all involved blocking flags (see below);
  • BLOCK_CREATURES or 1: sets the classic blocking ("impassable") flag, which blocks actors other than projectiles or bouncers. Removes the blockeverything and blockplayers flags.
  • BLOCK_EVERYTHING or 2: sets the blockeverything flag (effectively making it act like a solid wall). It also sets the blocking classic flag, but removes the blockplayers flag.
  • BLOCK_PLAYERS or 4: sets the MBF21 blockplayers flag. Disables the blocking and blockeverything flags.

Return value[edit]

Examples[edit]

No examples given.

Notes[edit]

Not all blocking flags (such as blocklandmonsters) are covered by this function.

This function's identification in zspecial.acs is: ACS internal.

See also[edit]