How to clean mob or player target by pressing ESC?
#1

Hello, I'm trying to clean target but seems to not work.

When a mob or player is target or for example if I press a skill, the cursor change to: UMCT_ATT_SKILL.

 if (GetPlayer()->m_bWaitForSkillTarget)

{

    pUIManager->GetMouseCursor()->SetCursorType(UMCT_ATT_SKILL);

}

I'd like to clean this or mob/player already selected.

I hook the pressure of ESC but:

ObjInfo* pInfo = ObjInfo::getSingleton();
pInfo->TargetClear();

does not work.

Anyone know how to fix that?

Thanks

#2

I believe I have done it in past using the ClearTargetInfo, take a look in places that use it



Forum Jump:


Users browsing this thread: 1 Guest(s)