Headspritestat: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Created page with ''''headspritestat''' ''sprite'' ''statnum'' Returns the ID of first sprite in the list of sprites with a matching statnum. This command can be used to scan through all sprites o...'
(No difference)

Revision as of 03:17, 14 July 2009

headspritestat sprite statnum

Returns the ID of first sprite in the list of sprites with a matching statnum. This command can be used to scan through all sprites of a certain type. The nextspritestat and prevspritestat commands should be used to go forward and back through the list of sprites. See also headspritesect, which is identical in operation but based on the sprite's sectnum rather than its statnum.