@jgonzalez I am working on making the animals in my game capable of forming packs. I thought I would do this by creating a collision box that could detect if any other animals from the same family are within it. If not, they would use a ray cast to seek them out. In the start method I have an int called lineage which is assigned a random number at the beginning of the game and this lineage number is passed to all the children of that animal and all of the subsequent children. I was thinking that I could use code to create tags with this number so that the animals could use that collision box I mentioned before to look for tags with the same lineage number as them.
In theory I could manually create a tag for every number within the range of the random number generator but I would have to do this for a thousand numbers. I thought it might be easier to do it in code with a for loop. Am I thinking incorrectly? Is there an easier way to go about this?