Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
I was testing this around, I believe is a usefull information
Line 5: Line 5:
{| cellpadding="0" cellspacing="0" border="0" width="100%"
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
*[[access_incs]]
*[[access_incs]]
*[[access_spritenum]]
*[[access_spritenum]]
Line 130: Line 131:
*[[scuba_on]]
*[[scuba_on]]
*[[secret_rooms]]
*[[secret_rooms]]
*[[select_dir]]
*[[shield_amount]]
*[[shield_amount]]
*[[show_empty_weapon]]
*[[show_empty_weapon]]
Line 153: Line 153:
*[[weapon_sway]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaponswitch]]
*[[weaprecs]]
*[[weapreccnt]]
*[[weapreccnt]]
*[[zoom]]
*[[zoom]]
|}
The following commands may not be recognized by the latest version of Eduke32:
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
*[[select_dir]]
*[[weaprecs]]
|}
|}


[[Category:Player manipulation]]
[[Category:Player manipulation]]
[[Category:Structure member documentation]]
[[Category:Structure member documentation]]

Revision as of 01:25, 3 August 2008

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:

The following commands may not be recognized by the latest version of Eduke32: