Elgenady
Veteran OT User
- Joined
- Aug 5, 2011
- Messages
- 1,637
- Solutions
- 35
- Reaction score
- 351
i use 0.4 source and i try to make something like this
its work but change targetdistance for all monster
example if use exeta res on hunter all hunters will chnage to mType->targetDistance = 1;
i need help to make it work on target monster only anyone can help me?
Code:
bool Monster::challengeCreature(Creature* creature)
{
if(isSummon() || !selectTarget(creature))
return false;
targetChangeCooldown = 8000;
targetChangeTicks = 0;
mType->targetDistance = 1;
return true;
}
example if use exeta res on hunter all hunters will chnage to mType->targetDistance = 1;
i need help to make it work on target monster only anyone can help me?