Mordecki Posted April 2, 2010 Share Posted April 2, 2010 Hey, I was making something like this: When player's vehicle stop, the cars behind him will ' bypass ' him by driving near his left side. I made it by getting any vehicle near player's car and useing Car.Drive to. Then ended like this: 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 100.0 0.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 2 store_to [email protected] [email protected] [email protected] Car.SetDriverBehaviour([email protected], 0) Car.SetToNormalDriver([email protected]) Car.SetMaxSpeed([email protected], 15.0) Car.DriveTo([email protected], [email protected], [email protected], [email protected]) wait 1000 Car.RemoveReferences([email protected]) Actor.RemoveReferences([email protected]) The problem is after some time playing traffic starts to disappear or game crash. And what i would want to know is: Is there any opcode/function which will automaticcly make vehicles 'bypass' player's car ? Thanks, Mordecki. Link to comment Share on other sites More sharing options...
Deji Posted April 2, 2010 Share Posted April 2, 2010 Setting 00AE to 1 should make the car overtake any cars in front. There are other modes that may interest you. It's common for traffic to disappear or move about weirdly if you use that method to get vehicles. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now