Dynamic Car
#1

How do i make my cars lik everytime someone drive one off and a new one comes (diffrent model) a few minutes later...
Reply
#2

you will need a timer
the timer will need to check if the last vehicle created is within a short distance
if the vehicle is then it will ignore it until the next loop.

if the area does not have the previous vehicle the timer should then check to see if any player in any vehicle is within the same distance
if there is then it will ignore it til the next loop

final part of the if within the timer
if nothing is there then create a vehicle.
you will need to give the vehicle a variable to track it for the first part of the timer
you will need to create a list of vehicle model ids in a new array
you will need to use the random() function on your list and place it in the first arguement of:
CreateVehicle(randommodelidhere, ............);

if you havent got any code for me to place code in, i wont write it for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)