👤Player
Last updated
Last updated
CPlayer
. CPlayer
extends <markstyle="color:purple">CEntity
CPlayer
, type: Enum.UnitOrder
, target: CEntity
|nil
, pos: Vector
, ability: CAbility
|nil
, issuer: Enum.PlayerOrderIssuer
, issuer_npc: CNPC
|
CNPC[]
, queue [?]
: boolean
, show_effects [?]
: boolean
, callback [?]
: boolean
, execute_fast [?]
: boolean
, identifier [?]
: string
): nil
Name | Type | Description |
---|---|---|
Provides ability to execute such game actions as moving, attacking, or casting spells etc.
Sends the hold position action.
Sends the attack target position.
CPlayer
): integer
Returns the player ID within the current game session. If the player ID is not valid, it will return -1.
CPlayer
): integer
Returns the player slot number within the current game session.
CPlayer
): integer
Returns the team slot number assigned to the player within their respective team.
CPlayer
): string
Returns the player nickname.
CPlayer
): ``Returns the player data table.
CPlayer
): ``Returns the player team data table. Team data is only available for players on the local team.
CPlayer
): {item: CItem }[]
Returns table with CItem
s available in the neutral stash.
CPlayer
): ``Returns Team Player Data table
CPlayer
): boolean
Returns the player mute status.
Returns table of selected units by player.
Adds unit to player selection.
CPlayer
): nil
Clears player selection.
CPlayer
): {m_quickBuyItems:integer[], m_quickBuyIsPurchasable:boolean[]}
Returns table with m_quickBuyItems(item ids) and m_quickBuyIsPurchasable(table of booleans).
CPlayer
): integer
Returns total gold of player.
Returns player's assigned hero.
Returns player's active ability.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|