Line_SetBlocking
55:Line_SetBlocking (lineid, setflags, clearflags)
- lineid: The ID of the line(s) to affect.
- setflags: The blocking flags to set.
- clearflags: The blocking flags to clear.
Alters the types of things which are blocked from crossing the linedefs with the specified lineid. Any block types present in setflags are turned on, while those present in clearflags are turned off. Types not specified in either argument are left alone.
The following block types are available for use in either of the flags arguments:
- BLOCKF_CREATURES (1): Blocks walking things (players and enemies)
- BLOCKF_MONSTERS (2): Blocks monsters (but not players)
- BLOCKF_PLAYERS (4): Blocks players
- BLOCKF_FLOATERS (8): Blocks floating creatures
- BLOCKF_PROJECTILES (16): Blocks projectiles
- BLOCKF_EVERYTHING (32): Blocks all of the above
- BLOCKF_RAILING (64): Emulates Strife's railing behavior (blocks actors under 32 units of the line)
- BLOCKF_USE (128): Blocks switches from being used across the line
- BLOCKF_SIGHT (256): Blocks monster line of sight
- BLOCKF_HITSCAN (512): Blocks hitscan attacks
- BLOCKF_SOUND (1024): Blocks sound
- BLOCKF_LANDMONSTERS (2048): Blocks land monsters (New from 4.10.0)
Examples
![]() |
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.