Posts: 950
Threads: 168
Joined: Mar 2009
Reputation:
0
Hello, how i do make speedtrap? What functions or what?
If you drive 100 km/h and you cross up that speedtrap, then speedtrap caught you, and you get ticket.
Posts: 950
Threads: 168
Joined: Mar 2009
Reputation:
0
But why 2 thing's? Not 1 thing? (vx and vy)
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
The world isn't 1 dimensional, so you need 2 "things which is of speed".
The third dimension is unused (z) which is upwards.
Posts: 6
Threads: 1
Joined: Dec 2008
Reputation:
0
Sorry for refresh, but is this in miles or kilometres?
Posts: 950
Threads: 168
Joined: Mar 2009
Reputation:
0
Sorry, but i forgotted some stuff's, so how do make area..?
-----------
if(vx > yourmaxspeedhere || vy > yourmaxspeedhere)
If kilometers, then what i should put it? 50? or what? (I want max 50 km/h)
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
You don't use the X/Y velocity without doing calculations. Your velocity on the X axis will only be the full velocity if you are going north/south, Y would be going east/west. If you are going north east, your velocity would get halved between the two. Find the GetPlayerSpeed function, use that. Areas aren't really required, just a simple coordinate in the middle of the road along with IsPlayerInRangeOfPoint.
Hope this helped,
-Conroy.