Page 1 of 1

I have a question about targets

Posted: Sat Mar 09, 2013 1:50 am
by WiiStream
Ok I am PChar->TargetSelected();
Or PChar->GetTargetID();

so here is my question how can I get Target of a selected object by TYPE

I am looking all over the place for the code in the core but im not finding it yet.

I thought maybe this would be It After reading though the code, and what do you know.
PEntity->loc.zone->GetEntity(PEntity->m_TargID, TYPE_PC)

I need a statement that says IF Player has Target TYPE_MOB DO FUNCTION

Then I can have the others as well if player has target type_pc do function or statement..

Re: I have a question about targets

Posted: Sat Mar 09, 2013 4:49 am
by bluekirby0
It is not acceptable behavior to PM people with your questions to try to solicit a quicker response. This post would have sufficed.