• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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