Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
No edit summary
Line 7: Line 7:
*[[aim_mode]]
*[[aim_mode]]
*[[auto_aim]]
*[[auto_aim]]
*[[weaponswitch]]
Cheat Codes
Cheat Codes
*[[cheat_phase]]
*[[cheat_phase]]
Line 40: Line 41:
*[[weapon_pos]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaprecs]][2]
*[[weaprecs]][2]
*[[weapreccnt]]
*[[weapreccnt]]

Revision as of 15:28, 28 September 2012

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:

Config

Cheat Codes

Ammo

Weapons

Inventory

Coordinates

Movements speed

View

Quotes

Score

Multiplayer

Deprecated

Misc

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