Declaration
func AddItem(target entity<Player>, item ItemIDType, count int, out var createdEntity List<entity<Entity>>)
go
Parameters
Input
Name | Type | Description |
---|---|---|
Target | Player | Player |
Item | ItemGoodsIDType | Item ID |
Count | Int | Item amount |
Out
Name | Type | Description |
---|---|---|
Created Entity | ListT_Entity | A list of items added for the player. Even if only one item is added, it is returned as a list. |