当商店发生购买商品前

经济
服务端
Both Mobile and PC
可触发:
商店实体组件

商店中购买商品前触发

声明

event OnPrePurchase(player entity<Player>, shopItem entity<ShopItem>)
go

参数

名称 类型 描述
玩家 Player 购买商品的玩家
商品 ShopItem 商品