GTA 4 Artificial Intelliegence
How does Rockstar Studio program the AI so that it walks on the sidewalk, wait for the green lights, call the Taxi, and even call the cops?
if (random() > 4){ call_for_taxi();}else if (light.isGreen()){ move_forward();}else{ halt();}
Quote:
Original post by Freeman2430
How does Rockstar Studio program the AI so that it walks on the sidewalk
Probably some sort of node/path system
Quote:
Original post by Freeman2430
Wait for the green lights
Conditional nodes
Quote:
Original post by Freeman2430
call the Taxi
By changing some internal state and playing an animation? Then set the location to a flag that tells taxis in the area that someone needs a pickup
Quote:
Original post by Freeman2430
and even call the cops?
If the player does something violent/illegal within a certain radius, call the cops with a certain probability?
I don't know these things for sure, but they can be approximated pretty quickly with these sorts of things. Of course, the finer details take the most effort.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement