Lazer object - 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)
+--- Thread: Lazer object (
/showthread.php?tid=619061)
Lazer object -
MerryDeer - 13.10.2016
Hi,
I have one player position and other player position, and i want to face lazer from one player position that lazer look to other player position how to do that?
Re: Lazer object -
NaS - 13.10.2016
Can you even ******? Or use the search function? Guess how many times that (or very similar) was asked before. Hell, there are even includes that do exactly that (and more). Basic trygonometry.
Re: Lazer object -
MerryDeer - 13.10.2016
I tried with
http://forum.sa-mp.com/showthread.ph...3D#post1498305
SetObjectFaceCoords3D, but lazer go down even i shoot to sky
Re: Lazer object -
NaS - 13.10.2016
Quote:
Originally Posted by MerryDeer
|
The rotations may not be accurate for that specific object you use.
AFAIK the lazer object is rotated 90° on the X axis, may be Y as well. Try applying an offset of 90 or 270 to either of them to see if that's the case.
Re: Lazer object -
MerryDeer - 13.10.2016
I tried, 90.0, 0.0, 0.0 and it's seem worked, so i don't need implement smth else?
Re: Lazer object -
MerryDeer - 13.10.2016
But not i more tested, still not work, when i shoot down or up laser is moving just in 2d
Re: Lazer object -
MerryDeer - 14.10.2016
UP topic, i need good function that could right face laser..
Like in this video:
http://forum.sa-mp.com/showthread.ph...ighlight=laser
Re: Lazer object -
Threshold - 14.10.2016
Learn trigonometry or if you're too lazy, which we already know you are, go here:
https://sampforum.blast.hk/showthread.php?tid=447813
Re: Lazer object -
MerryDeer - 14.10.2016
So what difference where i ask help, if i ask here so please help here
Re: Lazer object -
Threshold - 14.10.2016
This is scripting help. Not the scripting request section. I don't go to the Spanish Subforum to speak English.