Jump to content
Trinyx

How to spawn a vehicle on the low side of the road.

Recommended Posts

Hello,

I am developing a callouts, and I do not know how to spawn a vehicle on the low side of the road, like a traffic stop.
Thank you for your help !  and sorry for my bad English..

Share this post


Link to post
Share on other sites

So there is probably a better solution but I usually have the suspect cruisewithvehicle for a few seconds so I know he's facing the proper direction and then abruptly stop him so he's frozen while facing traffic and then I move him with vector 3 relativeright about 3f over which will always put him on the side of whatever road he's on.

 

Then I spawn a cop and put the cop car as

Copcar.position.rotation = suspectcar.position.rotation

Then make the copcar relative back to the suspect car  by about 3f.

 

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×