Player information?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Player information?

Post by Bjarne BZR »

How do I access information about a player?

Say I have a trigger_multiple with setthread / the_stuff and this in the script:

Code: Select all

the_stuff:
  local.name = parm.other <Something something>
  local.health = parm.other <Something something>
  parm.other iprint ( "You are" local.name " and you have a health of " local.health )
end
How do I access the properties of a player object, and maby more importantly: What properties exist?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

parm.other.health should give you the health.

You can't get the name of a player from script I'm afraid. All available properties are listed in g_allclasses.html.
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

jv_map wrote:All available properties are listed in g_allclasses.html.
Hmm.. thats what I was afraid of... :cry:
Admin .MAP Forums
Image
Head above heels.
Post Reply