Guniqhudid: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
'''guniqhudid''' <slotID>
'''guniqhudid''' <slotID>


<slotID> is slot's ID. Legal values are 0..254
<slotID> is the index of the slot which will be used to draw a model. Legal values are 0 through 254.


Select an extra slots so HUD models can store animation state without messing game sprites. By default it uses the first slot(#0). If you need several animating HUD sprites, you should switch to another slot, draw a sprite with [[rotatesprite]], switch back to "guniqhudid 0".
The purpose of the guniqhudid command is that models drawn to the screen via rotatesprite do not have a [[sprite id]] like all other sprites in the game world. The engine needs some sort of ID so that it knows where and what to draw.
 
This command will allow you to select a different slot so that any HUD models you are drawing can store their animation state independently, without conflict. By default it uses the first slot, 0. If with to <code>guniqhudid 0</code>.


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Screen drawing commands]]
[[Category:Screen drawing commands]]

Revision as of 16:49, 12 April 2011

guniqhudid <slotID>

<slotID> is the index of the slot which will be used to draw a model. Legal values are 0 through 254.

The purpose of the guniqhudid command is that models drawn to the screen via rotatesprite do not have a sprite id like all other sprites in the game world. The engine needs some sort of ID so that it knows where and what to draw.

This command will allow you to select a different slot so that any HUD models you are drawing can store their animation state independently, without conflict. By default it uses the first slot, 0. If with to guniqhudid 0.