Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 15: Line 15:
Here is the list of Member Functions for players:  
Here is the list of Member Functions for players:  


[[access_incs]]
*[[access_incs]]
 
*[[access_spritenum]]
[[access_spritenum]]
*[[access_wallnum]]
 
*[[actors_killed]]
[[access_wallnum]]
*[[actorsqu]]
 
*[[airleft]]
[[actors_killed]]
*[[ammo_amount]]
 
*[[ang]]
[[actorsqu]]
*[[angvel]]
 
*[[bobcounter]]
[[airleft]]
*[[bobposx]]
 
*[[bobposy]]
[[ammo_amount]]
*[[boot_amount]]
 
*[[buttonpalette]]
[[ang]]
*[[cheat_phase]]
 
*[[crack_time]]
[[angvel]]
*[[curr_weapon]]
 
*[[cursectnum]]
[[bobcounter]]
*[[customexitsound]]
 
*[[dead_flag]]
[[bobposx]]
*[[dummyplayersprite]]
 
*[[exitx]]
[[bobposy]]
*[[exity]]
 
*[[extra_extra8]]
[[boot_amount]]
*[[fire_flag]]
 
*[[firstaid_amount]]
[[buttonpalette]]
*[[fist_incs]]
 
*[[footprintcount]]
[[cheat_phase]]
*[[footprintpal]]
 
*[[footprintshade]]
[[crack_time]]
*[[frag]]
 
*[[frag_ps]]
[[curr_weapon]]
*[[fraggedself]]
 
*[[fta]]
[[cursectnum]]
*[[ftq]]
 
*[[gm]]
[[customexitsound]]
*[[got_access]]
 
*[[gotweapon]]
[[dead_flag]]
*[[hard_landing]]
 
*[[hbomb_hold_delay]]
[[dummyplayersprite]]
*[[hbomb_on]]
 
*[[heat_amount]]
[[exitx]]
*[[heat_on]]
 
*[[holoduke_amount]]
[[exity]]
*[[holoduke_on]]
 
*[[holster_weapon]]
[[extra_extra8]]
*[[horiz]]
 
*[[horizoff]]
[[fire_flag]]
*[[hurt_delay]]
 
*[[i]]
[[firstaid_amount]]
*[[interface_toggle_flag]]
 
*[[invdisptime]]
[[fist_incs]]
*[[inven_icon]]
 
*[[jetpack_amount]]
[[footprintcount]]
*[[jetpack_on]]
 
*[[jumping_counter]]
[[footprintpal]]
*[[jumping_toggle]]
 
*[[kickback_pic]]
[[footprintshade]]
*[[knee_incs]]
 
*[[knuckle_incs]]
[[frag]]
*[[last_extra]]
 
*[[last_pissed_time]]
[[frag_ps]]
*[[lastrandomspot]]
 
*[[last_full_weapon]]
[[fraggedself]]
*[[last_weapon]]
 
*[[loogcnt]]
[[fta]]
*[[loogiex]]
 
*[[loogiey]]
[[ftq]]
*[[look_ang]]
 
*[[max_actors_killed]]
[[gm]]
*[[max_secret_rooms]]
 
*[[name]]
[[got_access]]
*[[newowner]]
 
*[[numloogs]]
[[gotweapon]]
*[[oang]]
 
*[[ohoriz]]
[[hard_landing]]
*[[ohorizoff]]
 
*[[on_crane]]
[[hbomb_hold_delay]]
*[[on_ground]]
 
*[[on_warping_sector]]
[[hbomb_on]]
*[[one_eighty_count]]
 
*[[one_parallax_sectnum]]
[[heat_amount]]
*[[oposx]]
 
*[[oposy]]
[[heat_on]]
*[[oposz]]
 
*[[opyoff]]
[[holoduke_amount]]
*[[over_shoulder_on]]
 
*[[palette]]
[[holoduke_on]]
*[[palookup]]
 
*[[pals]]
[[holster_weapon]]
*[[pals_time]]
 
*[[player_par]]
[[horiz]]
*[[posx]]
 
*[[posxv]]
[[horizoff]]
*[[posy]]
 
*[[posxv]]
[[hurt_delay]]
*[[posz]]
 
*[[poszv]]
[[i]]
*[[pycount]]
 
*[[pyoff]]
[[interface_toggle_flag]]
*[[quick_kick]]
 
*[[random_club_frame]]
[[invdisptime]]
*[[randomflamex]]
 
*[[rapid_fire_hold]]
[[inven_icon]]
*[[refresh_inventory]]
 
*[[rotscrnang]]
[[jetpack_amount]]
*[[scuba_amount]]
 
*[[scuba_on]]
[[jetpack_on]]
*[[secret_rooms]]
 
*[[select_dir]]
[[jumping_counter]]
*[[shield_amount]]
 
*[[show_empty_weapon]]
[[jumping_toggle]]
*[[somethingonplayer]]
 
*[[spritebridge]]
[[kickback_pic]]
*[[steroids_amount]]
 
*[[subweapon]]
[[knee_incs]]
*[[timebeforeexit]]
 
*[[tipincs]]
[[knuckle_incs]]
*[[toggle_key_flag]]
 
*[[transporter_hold]]
[[last_extra]]
*[[truefz]]
 
*[[truecz]]
[[last_pissed_time]]
*[[visibility]]
 
*[[wackedbyactor]]
[[lastrandomspot]]
*[[walking_snd_toggle]]
 
*[[wantweaponfire]]
[[last_full_weapon]]
*[[weapon_ang]]
 
*[[weapon_pos]]
[[last_weapon]]
*[[weapon_sway]]
 
*[[weaprecs]]
[[loogcnt]]
*[[weapreccnt]]
 
*[[zoom]]
[[loogiex]]
 
[[loogiey]]
 
[[look_ang]]
 
[[max_actors_killed]]
 
[[max_secret_rooms]]
 
[[name]]
 
[[newowner]]
 
[[numloogs]]
 
[[oang]]
 
[[ohoriz]]
 
[[ohorizoff]]
 
[[on_crane]]
 
[[on_ground]]
 
[[on_warping_sector]]
 
[[one_eighty_count]]
 
[[one_parallax_sectnum]]
 
[[oposx]]
 
[[oposy]]
 
[[oposz]]
 
[[opyoff]]
 
[[over_shoulder_on]]
 
[[palette]]
 
[[palookup]]
 
[[pals]]
 
[[pals_time]]
 
[[player_par]]
 
[[posx]]
 
[[posxv]]
 
[[posy]]
 
[[posxv]]
 
[[posz]]
 
[[poszv]]
 
[[pycount]]
 
[[pyoff]]
 
[[quick_kick]]
 
[[random_club_frame]]
 
[[randomflamex]]
 
[[rapid_fire_hold]]
 
[[refresh_inventory]]
 
[[rotscrnang]]
 
[[scuba_amount]]
 
[[scuba_on]]
 
[[secret_rooms]]
 
[[select_dir]]
 
[[shield_amount]]
 
[[show_empty_weapon]]
 
[[somethingonplayer]]
 
[[spritebridge]]
 
[[steroids_amount]]
 
[[subweapon]]
 
[[timebeforeexit]]
 
[[tipincs]]
 
[[toggle_key_flag]]
 
[[transporter_hold]]
 
[[truefz]]
 
[[truecz]]
 
[[visibility]]
 
[[wackedbyactor]]
 
[[walking_snd_toggle]]
 
[[wantweaponfire]]
 
[[weapon_ang]]
 
[[weapon_pos]]
 
[[weapon_sway]]
 
[[weaprecs]]
 
[[weapreccnt]]
 
[[zoom]]

Revision as of 04:10, 27 December 2004

Player Member Functions effect the players in the game by their player id.

Syntax:

<get/set>player[<player id>].<functionname> <gamevar>

<get/set> - getplayer to set the gamevar <gamevar> to the value of <functionname>. setplayer to set the value of <functionname> to the gamevar <gamevar>.

<player id> is the reference number for a player. Use THISACTOR within the APLAYER code, or an Event to set <player id> to the current player's reference number. Within another actor, typically the value myconnectindex must be used. Using myconnectindex may cause issues in multiplayer based mods in the current game versions, depending on what is set.

<functionname> is the name of the Member Function you want to use.

<gamevar> is the gamevar to get or set the value of.

Here is the list of Member Functions for players: