Guniqhudid: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 6: Line 6:


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 you need several animating HUD models, you should switch to another slot, draw the model with [[rotatesprite]], then switch back using <code>guniqhudid 0</code>.
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 you need several animating HUD models, you should switch to another slot, draw the model with [[rotatesprite]], then switch back using <code>guniqhudid 0</code>.
'''guniqhudid''' is short for "g (game? gun?) unique HUD ID".


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

Latest revision as of 00:59, 15 August 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 you need several animating HUD models, you should switch to another slot, draw the model with rotatesprite, then switch back using guniqhudid 0.

guniqhudid is short for "g (game? gun?) unique HUD ID".