Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
I got a little mathematical question:
Is it possible to make a math function to be used in samp?
Example: f(x) = X^2
In wich f(x) represents fe: the z position of a vehicle
And the x represents the time?
Posts: 900
Threads: 83
Joined: Aug 2010
Reputation:
0
What do you mean exactly?? I know that you can make a calculator ingame if thats what you meant.
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
Hmmm u need a real life calculator and type the function
F(x)=x^2
If u look the Y stuff as the samp height and x stuff as ingame time u can create some awesome stuff...
The function x^2 would make a vehicle go very high in the air, then the vh would go down in an increasing speed until he reached point 0 tyen it goes back up for example...
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
yeah use GetVehiclePos for the z value and gettime for time
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
So it should be somethikg like this:
GetVehiclePos = timevalue^2
Setvehiclepos(result)
in wich timevaleu gets +1 every 500 ms f.e?