| Main Page | Recent changes | Edit this page | Page history Printable version | Disclaimers | Privacy policy | Not logged in Log in | Help

# Members of the player structure

From EDukeWiki

Category: Player manipulation

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. if you only care about single player then use THISACTOR to reference the one and only player. In multiplayer using THISACTOR will refer to the current player which for actor code is defined as the nearest player. In display events (nonsynchronsised) use screenpeek. There is almost never any reason to use myconnectindex.

be warned that the use of THISACTOR as a player id in <get/set>player is a special case IE the following are NOT equivilent (and the second one won't do anything useful).

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

setvarvar TMP THISACTOR
<get/set>player[TMP].<functionname> <gamevar>

<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:

- access_incs
- access_spritenum
- access_wallnum
- actors_killed
- actorsqu
- airleft
- ammo_amount
- ang
- angvel
- bobcounter
- bobposx
- bobposy
- boot_amount
- buttonpalette
- cheat_phase
- crack_time
- curr_weapon
- cursectnum
- customexitsound
- dead_flag
- dummyplayersprite
- exitx
- exity
- extra_extra8
- fire_flag
- firstaid_amount
- fist_incs
- footprintcount
- footprintpal
- footprintshade
- frag
- frag_ps
- fraggedself
- fta
- ftq
- gm
- got_access
- gotweapon
- hard_landing
- hbomb_hold_delay
- hbomb_on
- heat_amount
- heat_on
- holoduke_amount
- holoduke_on
- holster_weapon
- horiz
- horizoff
- hurt_delay
- i
- interface_toggle_flag
- invdisptime
- inven_icon
- jetpack_amount
- jetpack_on
- jumping_counter
- jumping_toggle
- kickback_pic
- knee_incs
- knuckle_incs
- last_extra
- last_pissed_time
- lastrandomspot
- last_full_weapon
- last_weapon
- loogcnt
- 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
- sbs
- 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

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../m/e/m/Members_of_the_player_structure.html"

This page has been accessed 674 times. This page was last modified 21:06, 28 September 2005 by Richard Gobeille. Based on work by Peter Green and Jonathan Smith. Content is available under SourceForge.

Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports