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 edit summary
Line 1: Line 1:
'''headspritestat''' ''sprite'' ''statnum''
'''headspritestat''' ''<gamevar> 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]].
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]].

Revision as of 16:10, 17 November 2016

headspritestat <gamevar> 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.