Difference between revisions of "CPlayer"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Ok, tell me if I did anything wrong.)
 
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
CPlayer is the class that references an in-game Player, and can be used to modify said player at any given time.
 
<onlyinclude>
 
<onlyinclude>
  
Line 39: Line 40:
 
| {{:CPlayer::getSpawnPoint|getSpawnPoint}}
 
| {{:CPlayer::getSpawnPoint|getSpawnPoint}}
 
|-
 
|-
| [[CPlayer::getBlob|getBlob]]
+
| [[Component::getBlob|getBlob]]
| {{:CPlayer::getBlob|getBlob}}
+
| {{:Component::getBlob|getBlob}}
 
|-
 
|-
 
| [[CPlayer::ChangeTeam|ChangeTeam]]
 
| [[CPlayer::ChangeTeam|ChangeTeam]]
Line 48: Line 49:
 
| {{:CPlayer::AddKills|AddKills}}
 
| {{:CPlayer::AddKills|AddKills}}
 
|-
 
|-
| [[CPlayer::AddDeath|AddDeath]]
+
| [[CPlayer::AddDeaths|AddDeaths]]
| {{:CPlayer::AddDeath|AddDeath}}
+
| {{:CPlayer::AddDeaths|AddDeaths}}
 
|-
 
|-
 
|}
 
|}
Line 72: Line 73:
 
|
 
|
 
|}
 
|}
 +
 +
[[Category:Scripting]]
 +
[[Category:Object Types]]

Latest revision as of 00:01, 24 January 2013

CPlayer is the class that references an in-game Player, and can be used to modify said player at any given time.


Methods

Method Description
getUsername


getClantag


getCharacterName


getUsername


getTeamNum


getClassNum


getSex


getHead


getSkin


getSpawnPoint


getBlob

Returns a reference to the CBlob that owns this object. It is a method common to several object types that are considered 'components'.

ChangeTeam


AddKills


AddDeaths


Properties

Property Type Description
lastBlobFactory string
lastBlobConfig string
lastBlobName string