I have a question about targets

Post Reply
WiiStream

I have a question about targets

Post by WiiStream » Sat Mar 09, 2013 1:50 am

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..

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: I have a question about targets

Post by bluekirby0 » Sat Mar 09, 2013 4:49 am

It is not acceptable behavior to PM people with your questions to try to solicit a quicker response. This post would have sufficed.

Post Reply