Members of the player structure: Difference between revisions
Mblackwell (talk | contribs) No edit summary |
Mblackwell (talk | contribs) mNo edit summary |
||
Line 7: | Line 7: | ||
<get/set> - getplayer to set the [[gamevar]] <gamevar> to the value of <functionname>. setplayer to set the value of <functionname> to the gamevar <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 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. | <functionname> is the name of the Member Function you want to use. |
Revision as of 10:43, 23 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: