From ZDoom Wiki
Jump to navigation Jump to search

void ClearLineSpecial(void);


Clears the special of the line that activated the script. This is most useful for scripts that may require the player to have something and may be triggered more than once, but once they are fully executed (i.e. the player now has the required item), you no longer want it to be executed.


This script can be triggered an infinite number of times without the blue skull key, but once the player activates it and has that key the line will be cleared of the special and it can no longer be activated.

script 1 (void)
      //do other things here
      Print(s:"You need a blue skull key to activate this");

This only works for the activating line, if you want to clear a different line that is not the one that triggers the script you should use SetLineSpecial.

See also