Killit: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
you're thinking of addkills
add early return semantics
Line 1: Line 1:
'''killit'''
'''killit'''


Used within an [[actor]]'s code in order to delete it from a map.  
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.  
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]]'''.


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

Revision as of 14:41, 10 May 2012

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.