Angoff: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
var suffix merge
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''angoff''' <value><br>
<span {{code}}>'''angoff''' <value></span>
'''angoffvar''' <value>


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>.
<span {{code}}>'''angoffvar''' <value> </span>


Commands with an additional "var" suffix take [[gamevar]]s rather than constants or [[define]]d labels for their inputs.
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}}


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

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.