Page 1 of 1

Player information?

Posted: Sat Jul 05, 2003 11:11 am
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?

Posted: Sat Jul 05, 2003 11:53 am
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.

Posted: Sat Jul 05, 2003 12:40 pm
by Bjarne BZR
jv_map wrote:All available properties are listed in g_allclasses.html.
Hmm.. thats what I was afraid of... :cry: