new to Unity and stuck on recasting and AI [ Solved In IRC]

Hi guys i was wondering if you could help, i am struggling with raycast and i was wondering if there was an easy way to solve this problem.

I am creating AI with various rules and one of them is if the enemy has greater dimensions (transform.Scale) you should run away or if he hasnt eat him… simple huh?

The problem is all the npcs are spawned from the the same prefab with a random range put on their attributes…i was wonder if through raycast there is anyway to grab unique ids from a newly spawned prefab npc.

maybe if i could assign a number suffix to each new npc…also how would i get the scale information back from the Raycast.Hit

alternatively does anyone know a good guide to raycasting i allways run into issues with it for some reason.

Thanks

Brian

SOVLED IN IRC

If you dont mind, can you post what solution you ended up using?

Thanks!