Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Getplayer

From EDukeWiki

This allows you to fetch the value of one of the members of the player structure to a gamevar.

getplayer[<player id>].<member> <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
       }
...

Retrieved from "http://localhost../../../g/e/t/Getplayer.html"

This page has been accessed 485 times. This page was last modified 03:32, 8 September 2006 by Richard Gobeille. Based on work by Peter Green, Jonathan Smith and Roger Ondra and EDukeWiki user(s) Usurper.


[Main Page]
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