Killit: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
add early return semantics
No edit summary
Line 6: Line 6:


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 takes effect for sprites with a [[statnum]] of STAT_ACTOR.


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

Revision as of 20:29, 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 takes effect for sprites with a statnum of STAT_ACTOR.