阿荣社区采集员2 发表于 2024-10-17 09:44:27

NUTq求助 技能释放后不动


部分代码
function checkExecutableSkill_BloodRiven(obj)
{
if(!obj) return false;
local b_useskill = obj.sq_IsUseSkill(SKILL_BLOODRIVEN);
if(b_useskill)
{
obj.sq_IntVectClear();
obj.sq_IntVectPush(0); // substate세팅
obj.sq_AddSetStatePacket(STATE_BLOODRIVEN, STATE_PRIORITY_IGNORE_FORCE, true);
return true;
}
return false;
}
function checkCommandEnable_BloodRiven(obj)
{
if(!obj) return false;
local state = obj.sq_GetState();
return true;
}
function onSetState_BloodRiven(obj, state, datas, isResetTimer)//接受到 发送“STATE_ZSKILL00”状态 时,触发内容;
{
if(!obj) return;
local substate = obj.sq_GetVectorData(datas, 0);
obj.setSkillSubState(substate);
if(substate == 0)
{
obj.sq_StopMove();//停止角色的移动
obj.sq_SetCurrentAnimation(CUSTOM_ANI_BLOODRIVEN_1);//设置角色使用(CUSTOM_ANI_01)指向的ANI动作
}
else if(substate == 1)
{
obj.sq_SetCurrentAnimation(CUSTOM_ANI_BLOODRIVEN_2);
}
else if(substate == 2)
{
obj.sq_SetCurrentAnimation(CUSTOM_ANI_BLOODRIVEN_3);
}
else if(substate == 3)
{
obj.sq_SetCurrentAnimation(CUSTOM_ANI_BLOODRIVEN_4);
}
else if(substate == 4)
{
obj.sq_SetCurrentAnimation(CUSTOM_ANI_BLOODRIVEN_);
}
}
function onEndCurrentAni_BloodRiven(obj)
{
if(!obj) return;
local substate = obj.getSkillSubState();
if(substate == 0) {
obj.sq_IntVectClear();
obj.sq_IntVectPush(1); // substate세팅
obj.sq_AddSetStatePacket(STATE_BLOODRIVEN, STATE_PRIORITY_IGNORE_FORCE, true);
}
else if(substate == 2) {
obj.sq_IntVectClear();
obj.sq_IntVectPush(3); // substate세팅
obj.sq_AddSetStatePacket(STATE_BLOODRIVEN, STATE_PRIORITY_IGNORE_FORCE, true);
}
else if(substate == 3) {
obj.sq_IntVectClear();
obj.sq_IntVectPush(4); // substate세팅
obj.sq_AddSetStatePacket(STATE_BLOODRIVEN, STATE_PRIORITY_IGNORE_FORCE, true);
}
else if(substate == 4) {
obj.sq_AddSetStatePacket(STATE_STAND, STATE_PRIORITY_USER, true);//演出结束后,恢复站立。
}
}

阿荣社区采集员2 发表于 2024-10-17 09:45:09

阿荣社区采集员2 发表于 2024-10-17 09:45:32

已经解决了 自己**了。没检查仔细

阿荣社区采集员2 发表于 2024-10-17 09:46:31

大佬

阿荣社区采集员2 发表于 2024-10-17 09:47:17

可以

阿荣社区采集员3 发表于 2024-10-17 09:48:08

咋解决的
页: [1]
查看完整版本: NUTq求助 技能释放后不动