• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[AI] Need help with car ai

Status
Not open for further replies.
Level 2
Joined
Dec 9, 2007
Messages
12
Im making an rpg in modern world and i was wondering if it was possible to make the nuatral cars follow the road and drive around the city. using ai or would that be done with triggers?
 
Level 5
Joined
Oct 27, 2007
Messages
158
This can't be done with an AI script. You'll have to use triggers to force AI pathing for your cars on the road. Driving lanes could be setup using different regions. Border, intersection, and curves detection using regions should do it.

You could look at a tower defense map how its done. This implements pathing along a fixed path. If you're using lanes (oppossing traffic) then you'd have to make the movement more accurate (car driving in a straight line)
 
Status
Not open for further replies.
Top