Killit: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
Execution of subsequent code is halted in a fashion similar to '''[[return]]'''.
Execution of subsequent code is halted in a fashion similar to '''[[return]]'''.


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


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Latest revision as of 20:52, 21 May 2018

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 want it deleted and it is not already either STAT_ACTOR or STAT_MISC.