聲明
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 | 使用道具建立的新道具實體,可能為空 |