Difference between revisions of "CPlayer"
From King Arthur's Gold Wiki
(Ok, tell me if I did anything wrong.) |
Splittingred (Talk | contribs) 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}} | ||
|- | |- | ||
− | | [[ | + | | [[Component::getBlob|getBlob]] |
− | | {{: | + | | {{:Component::getBlob|getBlob}} |
|- | |- | ||
| [[CPlayer::ChangeTeam|ChangeTeam]] | | [[CPlayer::ChangeTeam|ChangeTeam]] | ||
Line 48: | Line 49: | ||
| {{:CPlayer::AddKills|AddKills}} | | {{:CPlayer::AddKills|AddKills}} | ||
|- | |- | ||
− | | [[CPlayer:: | + | | [[CPlayer::AddDeaths|AddDeaths]] |
− | | {{:CPlayer:: | + | | {{:CPlayer::AddDeaths|AddDeaths}} |
|- | |- | ||
|} | |} | ||
Line 72: | Line 73: | ||
| | | | ||
|} | |} | ||
+ | |||
+ | [[Category:Scripting]] | ||
+ | [[Category:Object Types]] |
Latest revision as of 23:01, 23 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 |