Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
One (talk | contribs)
No edit summary
Line 3: Line 3:
Here is the list of members of the player structure:
Here is the list of members of the player structure:


{| cellpadding="0" cellspacing="0" border="0" width="100%"
<div style="column-count:3;-moz-column-count:3;">
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
*[[access_incs]]
*[[access_incs]]
*[[access_spritenum]]
*[[access_spritenum]]
Line 54: Line 53:
*[[holster_weapon]]
*[[holster_weapon]]
*[[horiz]]
*[[horiz]]
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
*[[horizoff]]
*[[horizoff]]
*[[hurt_delay]]
*[[hurt_delay]]
Line 106: Line 102:
*[[pals_time]]
*[[pals_time]]
*[[player_par]]
*[[player_par]]
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" |
*[[posx]]
*[[posx]]
*[[posxv]]
*[[posxv]]
Line 156: Line 149:
*[[weapreccnt]]
*[[weapreccnt]]
*[[zoom]]
*[[zoom]]
|}
</div>


[1] Unused members. The game doesn't use them.<br>
[1] Unused members. The game doesn't use them.<br>

Revision as of 12:02, 3 May 2009

The various members of the player structure affect various aspects of the player, and manipulating their values is a very important aspect of scripting in EDuke32. Values can be retrieved from the game's internal player structures and stored in a gamevar with the getplayer command, and the setplayer command allows you to set any of the player structure member's value to that of a gamevar.

Here is the list of members of the player structure:

[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.