- Joined
- Jul 12, 2021
- Messages
- 51
- Reaction score
- 5
is i possible to make a mob (for example a zombie) always know the location of the nearest player and go towards them and attack no matter how far away they are?
Sorry for late reply, I see you didn't mark any of these as a solution so here are 2 templates;is i possible to make a mob (for example a zombie) always know the location of the nearest player and go towards them and attack no matter how far away they are?
Entity Action: Set Target (should be in the Goals category)And then use something from the AI option in entity action to make the zombie agro on the selected player
Sorry for late reply, I see you didn't mark any of these as a solution so here are 2 templates;is i possible to make a mob (for example a zombie) always know the location of the nearest player and go towards them and attack no matter how far away they are?
thanks this realy helped the other ones where a bit confusing to me, also the one for only one zombie is missing the set var target to %selected but its an easy fix thanks againSorry for late reply, I see you didn't mark any of these as a solution so here are 2 templates;
You have to put these Templates in Loops (with a wait maybe like 5? for LagSlayer) (do NOT put them directly in a Repeat, instead call them using Call Function (the Call Function block has to be inside a repeat) because if you do place them, the closing bracket of the Repeat disappears and/or it might not fit)
If You Have 1 Zombie:
If You Have Multiple Zombies:
oh yeah sorry about that, I copied the broken template, but it's fixable by a set variable after the Filter Distance, you place a variable called `target` and is LOCAL, and you also put a text called `%selected` in the 2nd slot and it should be fixed (ik you already done it but for people that need help)thanks this realy helped the other ones where a bit confusing to me, also the one for only one zombie is missing the set var target to %selected but its an easy fix thanks again