SetLineMonsterBlocking

From ZDoom Wiki
Jump to: navigation, search
Nuvolabomb.png Warning: The feature described on this page has been deprecated, and will no longer be supported or updated by the ZDoom developers. While some functionality may be retained for the purposes of backwards-compatibility, authors are strongly discouraged from utilizing this feature in future maps and to instead use Line_SetBlocking. Compatibility with future ZDoom versions is not guaranteed.

void SetLineMonsterBlocking(int lineid, int setting);

Usage

Sets blocking for monsters only.

Parameters

  • lineid: id of the line to set.
  • setting: this has two settings, 0 for off and 1 for on. For readability, you should use ON or OFF which are defined as 1 and 0 (respectively) in zdefs.acs.

Examples

This example will set all lines with the id of 1 to block monsters until some catastrophic thing happens five minutes into the map which allows the monsters to penetrate those lines.

script 1 OPEN
{
   SetLineMonsterBlocking(1, ON);
   delay(35 * 60 * 5);
   SetLineMonsterBlocking(1, OFF);
   HudMessageBold(s:"ZOMG!  The monsters can break through now!!!";
       HUDMSG_FADEOUT, 1, CR_RED, 0.5, 0.5, 3.0, 1.0);
}

See also