• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X targetDistance with exeta res

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
Code:
bool Monster::challengeCreature(Creature* creature)
{
    if(isSummon() || !selectTarget(creature))
        return false;

    targetChangeCooldown = 8000;
    targetChangeTicks = 0;
    mType->targetDistance = 1;
    return true;
}
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?
 
fixed close it please
should change targetdistance to a individual variable like health/speed
 
Back
Top