仙魔无双SDK
面向策划逻辑制作的游戏开发包
|
角色隐身相关的逻辑操作 更多...
函数 | |
int | GetActorVisable (FxCreature *pActor, unsigned long nTargetID=0xFFFFFFFF) |
角色pActor获取指定的对象nTargetID的隐身状态。 更多... | |
int | GetTargetVisable (FxCreature *pActor) |
获取角色pActor的目标的隐身状态。 更多... | |
int | SetActorVisable (FxCreature *pActor, int nVisable, unsigned long nTargetID=0xFFFFFFFF) |
角色pActor设置指定的对象nTargetID的隐身状态。只要nTargetID找不到,就是对自己操作。 更多... | |
int | SetTargetVisable (FxCreature *pActor, int nVisable) |
设置角色pActor的目标的隐身状态。 更多... | |
int | SwitchActorVisable (FxCreature *pActor, unsigned long nTargetID=0xFFFFFFFF) |
角色pActor让指定的对象nTargetID切换隐身状态。找不到nTargetID的时候,自己隐身 更多... | |
int | SwitchTargetVisable (FxCreature *pActor) |
角色pActor让自己的目标切换隐身状态。 更多... | |
角色隐身相关的逻辑操作
int GetActorVisable | ( | FxCreature * | pActor, |
unsigned long | nTargetID = 0xFFFFFFFF |
||
) |
角色pActor获取指定的对象nTargetID的隐身状态。
pActor | [角色] 角色对象。 |
nTargetID | [整数] 目标,默认-1。-1: 表示对自己操作。其他是指定的对象ID |
1 | 可见(非隐身) |
0 | 不可见(隐身) |
int GetTargetVisable | ( | FxCreature * | pActor | ) |
获取角色pActor的目标的隐身状态。
pActor | [角色] 角色对象。 |
1 | 可见(非隐身) |
0 | 不可见(隐身) |
int SetActorVisable | ( | FxCreature * | pActor, |
int | nVisable, | ||
unsigned long | nTargetID = 0xFFFFFFFF |
||
) |
角色pActor设置指定的对象nTargetID的隐身状态。只要nTargetID找不到,就是对自己操作。
pActor | [角色] 角色对象。 |
nVisable | [整数] 是否可见。1:可见 0:不可见 |
nTargetID | [整数] 目标,默认-1。-1: 表示对自己操作。其他是指定的对象ID |
int SetTargetVisable | ( | FxCreature * | pActor, |
int | nVisable | ||
) |
设置角色pActor的目标的隐身状态。
pActor | [角色] 角色对象。 |
nVisable | [整数] 是否可见。1:可见 0:不可见 |
int SwitchActorVisable | ( | FxCreature * | pActor, |
unsigned long | nTargetID = 0xFFFFFFFF |
||
) |
角色pActor让指定的对象nTargetID切换隐身状态。找不到nTargetID的时候,自己隐身
pActor | [角色] 角色对象。 |
nTargetID | [整数] 目标,默认-1。-1: 表示对自己操作。其他是指定的对象ID |
int SwitchTargetVisable | ( | FxCreature * | pActor | ) |
角色pActor让自己的目标切换隐身状态。
pActor | [角色] 角色对象。 |
0 | 切换失败,例如pActor并没有当前选择目标 |
1 | 切换成功 |