声明
event OnUseConsumable(consumableID ItemIDType, item entity<Entity>, spawnedItem entity<Entity>)
go
参数
名称 | 类型 | 描述 |
---|---|---|
道具ID | ItemGoodsIDType | 道具ID |
实体 | Entity | 道具实体,可能为空 |
后创建实体 | Entity | 使用道具创建的新道具实体,可能为空 |
在使用道具后触发,需要使用时间的道具会在完成使用后触发此事件
event OnUseConsumable(consumableID ItemIDType, item entity<Entity>, spawnedItem entity<Entity>)
go
名称 | 类型 | 描述 |
---|---|---|
道具ID | ItemGoodsIDType | 道具ID |
实体 | Entity | 道具实体,可能为空 |
后创建实体 | Entity | 使用道具创建的新道具实体,可能为空 |