Lazer object
#1

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?
Reply
#2

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.
Reply
#3

I tried with

http://forum.sa-mp.com/showthread.ph...3D#post1498305

SetObjectFaceCoords3D, but lazer go down even i shoot to sky
Reply
#4

Quote:
Originally Posted by MerryDeer
Посмотреть сообщение
I tried with

http://forum.sa-mp.com/showthread.ph...3D#post1498305

SetObjectFaceCoords3D, but lazer go down even i shoot to sky
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.
Reply
#5

I tried, 90.0, 0.0, 0.0 and it's seem worked, so i don't need implement smth else?
Reply
#6

But not i more tested, still not work, when i shoot down or up laser is moving just in 2d
Reply
#7

UP topic, i need good function that could right face laser..

Like in this video:

http://forum.sa-mp.com/showthread.ph...ighlight=laser
Reply
#8

Learn trigonometry or if you're too lazy, which we already know you are, go here:
https://sampforum.blast.hk/showthread.php?tid=447813
Reply
#9

So what difference where i ask help, if i ask here so please help here
Reply
#10

This is scripting help. Not the scripting request section. I don't go to the Spanish Subforum to speak English.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)