当使用道具时

物品
服务端
Both Mobile and PC
可触发:
玩家实体组件

在使用道具后触发,需要使用时间的道具会在完成使用后触发此事件

声明

event OnUseConsumable(consumableID ItemIDType, item entity<Entity>, spawnedItem entity<Entity>)
go

参数

名称 类型 描述
道具ID ItemGoodsIDType 道具ID
实体 Entity 道具实体,可能为空
后创建实体 Entity 使用道具创建的新道具实体,可能为空