Page 1 of 1
$player values
Posted: Mon Oct 20, 2003 11:48 pm
by digitac
Can someone give me a list with all the values i can get of the Var $player
Like $player.size etc.
and maybee someone can make a sticky with all Standard variables like $player
Thanks
Posted: Tue Oct 21, 2003 2:58 am
by bdbodger
$player is a targetname automatically assigned to the player or for multiplayer the players.
In a multi player game with 6 players $player.size = 6 it is the same for any targetname array . Anything with a targetname can hold variables for example $player.bannanas = 4 . iprintln $player.bannanas will print 4 on the screen . Variables can also be arrays $player.bannanas[1] = 6 $player.bannanas[2] = 2 . iprintln $player.bannanas[2] $player.bannanas[1] will print 2 6 on the screen . There are other automatic variables as well like $player.isdisguised or has_disguise used for disguise levels . Download the SDK for the documentation and look under the heading player .
Posted: Tue Oct 21, 2003 8:07 am
by digitac
Thny M8, will do that right now
Posted: Tue Oct 21, 2003 8:18 am
by jv_map
iprintln $player.bannanas[2] $player.bannanas[1] will print
26 
Posted: Tue Oct 21, 2003 1:17 pm
by digitac
hoe to get the playername and those thingy's
and what script fills the players in the scores screen in MP
Posted: Tue Oct 21, 2003 1:59 pm
by jv_map
You cannot get the player name via scripting, nor his score. The scoreboard is handled by game code not by scripts.