Vectors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vectors (
/showthread.php?tid=138916)
Vectors -
potato - 03.04.2010
Hi!
I wanted to ask about vectors... how do they work?
As I remeber from my sleepy math classes then vectors are lines with starting coordinates and endind coordinates, but from useless physics classes I remeber that a force can be a vector and coordinate sum RMS is showing how large is the vector.
But I can't seem to understand how the vectors work in SA-MP, for example GetPlayerVelocity.
My goal is to figure out GetPlayerCameraPos, GetPlayerCameraFrontVector and GetPlayerCameraUpVector in order to create a simple script that would, for example, detect if I'm aiming at a object (coordinate range).
Re: Vectors -
VictorMartinez - 08.08.2010
http://forum.sa-mp.com/showthread.ph...ghlight=vector