SA-MP Forums Archive
About arrow moving. - 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: About arrow moving. (/showthread.php?tid=570461)



About arrow moving. - NexTioN1230 - 10.04.2015

Hello,
today i ented to Cops Vs Robbers server and i saw there mission and when i entered to the vehicle of the mission i saw an arrow above the vehicle and the arrow moved to the side of the checkpoint in the map (always changed the rotation of the arrow).
it shows me how to get to the checkpoint using the arrow above the vehciel that changed the rotation of him.
How can i do it?
arrow like that - https://www.youtube.com/watch?v=AOxeFu38_5g
Thanks for help.


Re: About arrow moving. - fuckingcruse - 10.04.2015

Any codes so that we can see..


Re: About arrow moving. - NexTioN1230 - 10.04.2015

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
Any codes so that we can see..
I`m asking about how to do it...


Re: About arrow moving. - mamorunl - 10.04.2015

Create the object, position it above the player and attach. You can then use SetObjectRot to move it towards that angle. The angle, you have to calculate with math (which I am horrible at, but I guess it has something to do with GetXYInFrontOfPlayer or something).

Hope this helps at least a little