仙魔无双SDK
面向策划逻辑制作的游戏开发包
|
宠物相关操作 更多...
函数 | |
unsigned long | CreateRolePet (FxCreature *pCreature, unsigned int nPetTemplateID) |
创建角色的宠物 更多... | |
bool | DestroyRolePet (FxCreature *pCreature) |
销毁角色的宠物 更多... | |
bool | ChgRolePetMode (FxCreature *pCreature, pet_mode_cfg_id_t cfgID) |
更改角色宠物的模式 更多... | |
int | CreatePetInScene (FxScene *pScene, int nPosX, int nPosY, int nPosZ, unsigned long nSrcID, unsigned long nPetID, unsigned long nLv, std::string strName, unsigned long nRandomPos=0, unsigned long nTime=0xFFFFFFFF, float fOrientation=0.00f, unsigned long nMinRandPos=0, unsigned long nUpHeight=2000, bool bGravity=true) |
在场景pScene的指定坐标[nPosX, nPosY, nPosZ]创建宠物。 更多... | |
int | RemovePet (FxCreature *pActor, bool bImmediately=false) |
在角色pActor相同的场景里,移除指定的宠物pPet 更多... | |
int | CallCurPet (FxCreature *pActor) |
召唤当前宠物 更多... | |
int | StartPetHuanHua (FxCreature *pActor) |
变身宠物并加载宠物技能 更多... | |
int | EndPetHuanHua (FxCreature *pActor) |
宠物变身结束 更多... | |
宠物相关操作
int CallCurPet | ( | FxCreature * | pActor | ) |
召唤当前宠物
pActor | [角色] 角色对象 |
bool ChgRolePetMode | ( | FxCreature * | pCreature, |
pet_mode_cfg_id_t | cfgID | ||
) |
更改角色宠物的模式
pCreature | [对象] 角色对象 |
cfgID | [整数] 模式配置ID号 |
true | 更改成功 |
false | 更改失败 |
int CreatePetInScene | ( | FxScene * | pScene, |
int | nPosX, | ||
int | nPosY, | ||
int | nPosZ, | ||
unsigned long | nSrcID, | ||
unsigned long | nPetID, | ||
unsigned long | nLv, | ||
std::string | strName, | ||
unsigned long | nRandomPos = 0 , |
||
unsigned long | nTime = 0xFFFFFFFF , |
||
float | fOrientation = 0.00f , |
||
unsigned long | nMinRandPos = 0 , |
||
unsigned long | nUpHeight = 2000 , |
||
bool | bGravity = true |
||
) |
在场景pScene的指定坐标[nPosX, nPosY, nPosZ]创建宠物。
pScene | [场景] 场景对象。 |
nPosX | [整数] X坐标。 |
nPosY | [整数] Y坐标。 |
nPosZ | [整数] Z坐标。 |
nSrcID | [整数] 创建者ID。 |
nMonsterID | [整数] 宠物模版ID。 |
nLv | [整数] 宠物等级。 |
strName | [整数] 宠物名称。 |
nRandomPos | [整数] 位置随机的半径,默认0。 |
nTime | [整数] 召唤出的怪物的生存时间,默认-1,即永久。 |
fOrientation | [浮点] 朝向,弧度。 |
nMinRandPos | [整数] 位置随机的内半径,默认0。 |
nUpHeight | [整数] 拉高的z坐标。 |
0 | 召唤怪物失败 |
其他 | 召唤的怪物的实例ID。当参数nCount大于1的时候,返回最后一个怪物的实例ID。如果要精确控制每个怪物的逻辑,则分多次调用。 |
unsigned long CreateRolePet | ( | FxCreature * | pCreature, |
unsigned int | nPetTemplateID | ||
) |
创建角色的宠物
pCreature | [对象] 角色对象 |
nPetTemplateID | [整数] 宠物模板ID号 |
0 | 创建失败 |
其他 | 创建成功 |
bool DestroyRolePet | ( | FxCreature * | pCreature | ) |
销毁角色的宠物
pCreature | [对象] 角色对象 |
true | 销毁成功 |
false | 销毁失败 |
int EndPetHuanHua | ( | FxCreature * | pActor | ) |
宠物变身结束
pActor | [角色] 角色对象 |
int RemovePet | ( | FxCreature * | pActor, |
bool | bImmediately = false |
||
) |
在角色pActor相同的场景里,移除指定的宠物pPet
pActor | [角色] 角色对象 |
pPet | [角色] 要移除的宠物对象 |
bImmediately | [布尔] 是否立刻移除,默认false,目前暂时无用 |
int StartPetHuanHua | ( | FxCreature * | pActor | ) |
变身宠物并加载宠物技能
pActor | [角色] 角色对象 |