Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
I was testing this around, I believe is a usefull information
No edit summary
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]]
*[[access_wallnum]]
*[[access_wallnum]][1]
*[[actors_killed]]
*[[actors_killed]]
*[[actorsqu]]
*[[actorsqu]]
Line 29: Line 28:
*[[dead_flag]]
*[[dead_flag]]
*[[dummyplayersprite]]
*[[dummyplayersprite]]
*[[exitx]]
*[[exitx]][1]
*[[exity]]
*[[exity]][1]
*[[extra_extra8]]
*[[extra_extra8]]
*[[falling_counter]]
*[[falling_counter]]
Line 73: Line 72:
*[[last_extra]]
*[[last_extra]]
*[[last_pissed_time]]
*[[last_pissed_time]]
*[[lastrandomspot]]
*[[lastrandomspot]][1]
*[[last_full_weapon]]
*[[last_full_weapon]]
*[[last_weapon]]
*[[last_weapon]]
Line 86: Line 85:
*[[max_shield_amount]]
*[[max_shield_amount]]
*[[movement_lock]]
*[[movement_lock]]
*[[name]]
*[[name]][1]
*[[newowner]]
*[[newowner]]
*[[numloogs]]
*[[numloogs]]
Line 120: Line 119:
*[[quick_kick]]
*[[quick_kick]]
*[[random_club_frame]]
*[[random_club_frame]]
*[[randomflamex]]
*[[randomflamex]][1]
*[[rapid_fire_hold]]
*[[rapid_fire_hold]]
*[[refresh_inventory]]
*[[refresh_inventory]]
Line 131: Line 130:
*[[scuba_on]]
*[[scuba_on]]
*[[secret_rooms]]
*[[secret_rooms]]
*[[select_dir]][2]
*[[shield_amount]]
*[[shield_amount]]
*[[show_empty_weapon]]
*[[show_empty_weapon]]
Line 149: Line 149:
*[[walking_snd_toggle]]
*[[walking_snd_toggle]]
*[[wantweaponfire]]
*[[wantweaponfire]]
*[[weapon_ang]]
*[[weapon_ang]][1]
*[[weapon_pos]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaponswitch]]
*[[weaprecs]][2]
*[[weapreccnt]]
*[[weapreccnt]]
*[[zoom]]
*[[zoom]]
|}
|}


The following commands may not be recognized by the latest version of Eduke32:
[1]Deprecated or unknown function commands.
 
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
 
*[[select_dir]]
*[[weaprecs]]


|}
[2]The following commands may not be recognized by the latest version of Eduke32.


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

Revision as of 00:55, 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:

[1]Deprecated or unknown function commands.

[2]The following commands may not be recognized by the latest version of Eduke32.