Kickback pic: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Determines which animation frame the player's current weapon is in. Returns a value of 0 if the weapon is idling and counts higher as the weapon animation continues. Resets to 0 after the weapon's TOTALTIME has been exceeded.
'''kickback_pic''' determines which animation frame the player's current weapon is in. Generally, scripts can just use the constantly updated gamevar [[weaponcount]] instead because the executable basically performs a "<code>[[getplayer]]<nowiki>[</nowiki>[[THISACTOR]]<nowiki>]</nowiki>.kickback_pic weaponcount</code>" every [[tic]].


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 16:15, 8 July 2012

kickback_pic determines which animation frame the player's current weapon is in. Generally, scripts can just use the constantly updated gamevar weaponcount instead because the executable basically performs a "getplayer[THISACTOR].kickback_pic weaponcount" every tic.