Setplayer: Difference between revisions
Jump to navigation
Jump to search
Hunter byte (talk | contribs) mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''setplayer'''[<player id>].<member> <gamevar> | |||
This allows you to set one of the [[members of the player structure]] to the value of a [[gamevar]]. | This allows you to set one of the [[members of the player structure]] to the value of a [[gamevar]]. | ||
The player ID can be either [[THISACTOR]], [[screenpeek]] or [[myconnectindex]], though using myconnectindex is strongly recommended against. | The player ID can be either [[THISACTOR]], [[screenpeek]] or [[myconnectindex]], though using myconnectindex is strongly recommended against. |
Revision as of 12:25, 4 May 2009
setplayer[<player id>].<member> <gamevar>
This allows you to set one of the members of the player structure to the value of a gamevar.
The player ID can be either THISACTOR, screenpeek or myconnectindex, though using myconnectindex is strongly recommended against.
... ifvarg WEAPON_COUNT 25 { getplayer[THISACTOR].weapon_pos TEMP2 ifvarl TEMP2 10 addvar TEMP2 2 ifvarg TEMP2 9 setvar TEMP2 9 setplayer[THISACTOR].weapon_pos TEMP2 } ...