仙魔无双SDK
面向策划逻辑制作的游戏开发包
移除道具操作

移除道具的操作 更多...

函数

int RemoveItemFromActor (FxCreature *pActor, unsigned long nItemID, unsigned long nCount=1)
 从角色pActor身上移除nItemID的道具,nCount个。 更多...
 

详细描述

移除道具的操作

函数说明

◆ RemoveItemFromActor()

int RemoveItemFromActor ( FxCreature *  pActor,
unsigned long  nItemID,
unsigned long  nCount = 1 
)

从角色pActor身上移除nItemID的道具,nCount个。

参数
pActor[角色] 角色对象。
nItemID[整数] 要添加的道具
nCount[整数] 个数,默认1
返回
[整数] 忽视