Posts: 453
	Threads: 173
	Joined: Jun 2011
	
Reputation: 
0
	 
 
	
	
		Hi all.Maybe somebody know how to get all vehicle distance,and save it?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 824
	Threads: 53
	Joined: Jul 2010
	
Reputation: 
0
	 
 
	
	
		What do you mean, vehicle distance ?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 740
	Threads: 63
	Joined: Oct 2009
	
Reputation: 
0
	 
 
	
	
		You maybe mean coordinates?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 453
	Threads: 173
	Joined: Jun 2011
	
Reputation: 
0
	 
 
	
	
		No. i don't know how it say correct in your language,it's like run with vehicle distance.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 131
	Threads: 7
	Joined: Aug 2011
	
Reputation: 
0
	 
 
	
	
		Are you talking about the 'Stunt Bonus' as in the San Andreas Single Player?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,781
	Threads: 13
	Joined: Sep 2009
	
Reputation: 
0
	 
 
	
	
		i think its about a "taxo-meter". the distance travelled so far...
the squareroot is a good beginning. but instead of using the vehiclevelocity:
store actual vehicle position in an array (x_old,y_old,z_old).
wait some time (timer?), let the player drive some distance.
get his vehicles position again (store it into another array, this time x_new,y_new,z_new), and subtract each values like
new x_travelled= x_old-x_new;
new y_travelled= y_old-z_new;
new z_travelled= y_old-z_new;
you will get some "delta"values, the travelled distances in each axis:
x_travelled=123.4560
y_travelled=-80.0000
z_travelled=1.0131
dont worry about negative values. powering them will make them positive...
after adding the newly calculated "short time" distance to the ever-lasting counter:
x_travelled_atall+=travelledX;
, dont forget to copy the x_new into the x_old coordinate, so the next call will use the x_new as x_old, since the x_new will get calced again..
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 453
	Threads: 173
	Joined: Jun 2011
	
Reputation: 
0
	 
 
	
	
		I don't understand here nothing.Maybe you have time and can my make a meter?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,676
	Threads: 44
	Joined: Aug 2010
	
Reputation: 
0
	 
 
	
	
		budelis use ****** Translete if you cant say