$player values

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

$player values

Post 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
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

Post by digitac »

Thny M8, will do that right now
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

iprintln $player.bannanas[2] $player.bannanas[1] will print 26 :P
Image
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

Post by digitac »

hoe to get the playername and those thingy's

and what script fills the players in the scores screen in MP
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You cannot get the player name via scripting, nor his score. The scoreboard is handled by game code not by scripts.
Image
Post Reply