How could i do this?

Blitz3D Forums/Blitz3D Programming/How could i do this?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I would like to have my AI cars able to overtake other cars. I have them all stored in a type call "opp" (for opponent)
But if i type:

for o.opp = each opp
if entitydistance(o\entity,?)<5 then 
moveentity o\entity,-o\speed,0,0
next


Obviously, the reason i've typed the "?" above, shows that i didn't have a clue how to access a check on all other cars within that type :(

I would be delighted if someone could help me out here :)

Thanks