- Home /
Question by
nicoolsen10 · Jun 20, 2019 at 02:06 PM ·
enemyradiusthrow
Make an enemy stop at a radius
So i have this enemy and i want it to stop when i reaches its throwraidus how do i do that
void Update()
{
TargetFinder();
if (CurrentStones > 0)
{
if (myTarget == null)
currentTargetDistance = searchRadius;
else
Move(myTarget.transform);
{
if (currentTargetDistance < throwRaidus)
{
DoThrow();
}
}
}
Comment
Your answer
Follow this Question
Related Questions
Instantiate enemies around player 1 Answer
Throw the Player from the Enemy away 1 Answer
How do I destroy all enemy game objects with a bomb? 2 Answers
Joints & Throws 1 Answer
Create an Enemy Animation 0 Answers