Killit

From EDukeWiki
Revision as of 20:51, 21 May 2018 by Hendricks266 (talk | contribs)
Jump to navigation Jump to search

killit

Used within an actor's code in order to delete it from a map.

Setting the sprite's xrepeat to 0 using setactor, sizeat, or sizeto has the same effect.

Execution of subsequent code is halted in a fashion similar to return.

This command only truly takes effect for sprites with certain statnums. Sprites of other statnums will still disappear, but they will not be deleted, which can cause performance and logic issues. Be sure to change a sprite's statnum if you truly want it deleted.

  • STAT_ACTOR
  • STAT_MISC