So, help.
-
I have a working targeting system, but every time I get attacked by the bots, my team focuses on me instead of the bots.
-
@sirbots, hello!
Since I’m working on an AI myself, I could help!
Just send the link and add notes/comments to the ones you want me to fix.
Also explain the coding blocks you think I may not understand, if there are any. -
-
@sirbots There’s the ai for both sides.
-
@sirbots How do I start it? I press play and nothing happens
-
@011830-0a42ef84 Its just the AI. Nothing else.
-
@sirbots Can you send me the game that has the bug?
-
@011830-0a42ef84 The current version I’m working on has the bug. The released version rn does not.
-
-
@sirbots, Do your units on your team have inf range detection?
I mean this as in if you get shot by an enemy, do ALL friendlies on the map (that aren’t dead) hear it?
-
@011830-0a42ef84 They don’t use sound. its only when they are in a certain distance of each other.
-
-
@011830-0a42ef84 No, my team shoots at me when I get attacked by the bots.
-
@sirbots, oh, I get what you mean now.
What I would do is add a sprite that works as a zone for the bot’s detection range. When it targets an enemy, make sure that it won’t target the player by using the 'If (touching player)"
This may bug when there are multiple bots in the area, so you could add a thin sprite that is a line that connects to the eyes of the bot, so when it sees multiple bots in the original zone, it will turn to target the closest one (the one with the least amt of turning to target). If it is the player, the bot will move on to the other target
-
@011830-0a42ef84 Huh.
-
@sirbots Does it work?
-
@011830-0a42ef84 No, I might have to share the unfinished version with you.
-
@sirbots The best I can do rn is to just have them shoot at random bots anywhere on the map based on the coordinates on both teams, sadly. It’s still better than randomly firing at stuff