Angoff: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
<span {{code}}>'''angoffvar''' <value> </span>
<span {{code}}>'''angoffvar''' <value> </span>


Sets the angle offset for a 3D model assigned to an [[actor]].  When set, the angle of the [[actor]]'s 3D model will be rendered offset by ''<number>''.
Sets the angle offset for a 3D model assigned to the current [[actor]].  When set, the angle of the [[actor]]'s 3D model will be rendered offset by ''<number>''.
 
Can also be directly set for other sprites by accessing the ''angoff'' member of the [[Members_of_the_sprite,_hittype,_and_spriteext_structures|spriteext struct]].


{{varsuffix}}
{{varsuffix}}

Latest revision as of 01:42, 12 January 2021

angoff <value>

angoffvar <value>

Sets the angle offset for a 3D model assigned to the current actor. When set, the angle of the actor's 3D model will be rendered offset by <number>.

Can also be directly set for other sprites by accessing the angoff member of the spriteext struct.

Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs. As an alternate short form, "varvar" can be dropped from these commands; for example ife serves an an alias for ifvarvare.