Declaration
func GetItemCount(target entity<Player>, item ItemIDType) int
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Target | Player | Target Player |
| Item | ItemGoodsIDType | Item Type |
Return
| Type | Description |
|---|---|
| Int | Player holding amount |
Get the number of specified items held by the player
func GetItemCount(target entity<Player>, item ItemIDType) int
go
| Name | Type | Description |
|---|---|---|
| Target | Player | Target Player |
| Item | ItemGoodsIDType | Item Type |
| Type | Description |
|---|---|
| Int | Player holding amount |