- Home /
Duplicate Question
detect target using variable
i am building a tower defense game and I want my towers to look for a enemy using a overlay sphere and a variable.
in steps I want the target to be determined in this order 1. check if it's an enemy 2. check if obstacle between tower and target 3. check current path object 4. check distance to next path object
Questions about overlapsphere have been asked many times. Unity Answers is not the place to share your design and wait for code to be written; checking for a tag of Enemy is one of the basic things covered in any Unity 101 tutorial; using Raycast for LoS has been discussed over and over again;
If you have a specific question, please ask it, otherwise consider posting this in the forums under collaboration
In steps I want 1. a pizza 2. a drink 3. a napkin 4. a pillow & blanket
you didn't have to be rude about it I have figured plenty of stuff on my own I just don't know how to do this properly
@mirrornineteen the problem with your question as it was written is the scope of "to do ...this..."; the "this" was an awful lot. If you have a specific question about one of these elements, please ask anew.
i mostly just needed to know how to do step 4 in other words get object with lowest of a variable
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
regarding tower defence game 0 Answers