Creation/Dev/Script/Client/TPlayer: Difference between revisions

From Graal Bible
mNo edit summary
 
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<pre>
[[Category:Scripting Reference]]
          TPlayer (TServerPlayer):
{{Script Object}}
            ap - integer
 
            chat - string
Inherits [[Creation/Dev/Script/Client/TServerPlayer|TServerPlayer]].
            freezetime - float
 
            hearts - float
=Variables=
            horseimg - string
{| border="1" cellpadding="2" width="100%"
            hp - float
| '''Name'''
            hurt - boolean (read only)
| '''Type'''
            hurtdx - float (read only)
| '''Description'''
            hurtdy - float (read only)
|-
            hurted - boolean (read only)
| ap
            hurtpower - float (read only)
| integer
            isfemale - boolean (read only)
| Current [[AP]] of player
            ismale - boolean (read only)
|-
            letters - string
| chat
            map - boolean (read only)
| string
            nick - string (read only)
| Current chat text of player
            onhorse - boolean (read only)
|-
            online - boolean (read only)
| freezetime
            paused - boolean (read only)
| float
            reading - boolean (read only)
| Time left in player being frozen
            shieldimg - string
|-
            sprite - integer
| hearts
            swimming - boolean (read only)
| float
            swordimg - string
| Current hearts
            transform - string
|-
            weapon - object (read only)
| horseimg
            weapons - object (read only)
| string
</pre>
| Filename of horse image
|-
| hp
| float
|
|-
| hurt
| boolean (read only)
|
|-
| hurtdx
| float (read only)
|
|-
| hurtdy
| float (read only)
|
|-
| hurted
| boolean (read only)
|
|-
| hurtpower
| float (read only)
|
|-
| isfemale
| boolean (read only)
| Is player female
|-
| ismale
| boolean (read only)
| Is player male
|-
| letters
| string
|
|-
| map
| boolean (read only)
|
|-
| nick
| string (read only)
| Nickname of player
|-
| onhorse
| boolean (read only)
| Is player on a horse
|-
| online
| boolean (read only)
| Is player on an online server
|-
| paused
| boolean (read only)
| Is player paused
|-
| reading
| boolean (read only)
| Is player reading a sign
|-
| shieldimg
| string
| Filename of shield image
|-
| sprite
| integer
| Sprite index
|-
| swimming
| boolean (read only)
| Is player swimming in water
|-
| swordimg
| string
| Filename of sword image
|-
| transform
| string
|
|-
| weapon
| object (read only)
| Current weapon object
|-
| weapons
| object (read only)
| Array of weapon objects
|}

Latest revision as of 19:31, 5 April 2010


This article is information on a script object - a pre-defined type of variable with its own set of static variables and functions. It is intended for use with the GS2 scripting language.


Inherits TServerPlayer.

Variables

Name Type Description
ap integer Current AP of player
chat string Current chat text of player
freezetime float Time left in player being frozen
hearts float Current hearts
horseimg string Filename of horse image
hp float
hurt boolean (read only)
hurtdx float (read only)
hurtdy float (read only)
hurted boolean (read only)
hurtpower float (read only)
isfemale boolean (read only) Is player female
ismale boolean (read only) Is player male
letters string
map boolean (read only)
nick string (read only) Nickname of player
onhorse boolean (read only) Is player on a horse
online boolean (read only) Is player on an online server
paused boolean (read only) Is player paused
reading boolean (read only) Is player reading a sign
shieldimg string Filename of shield image
sprite integer Sprite index
swimming boolean (read only) Is player swimming in water
swordimg string Filename of sword image
transform string
weapon object (read only) Current weapon object
weapons object (read only) Array of weapon objects