I have a question about targets
Posted: 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..
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..