SA-MP Forums Archive
how can i get attached object pos - 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: how can i get attached object pos (/showthread.php?tid=665635)



how can i get attached object pos - rockys - 11.04.2019

how can i get postion of attached object vehicle

or how to update attached object vehicle?


Re: how can i get attached object pos - NaS - 11.04.2019

https://github.com/Shiska/rotations

This include has some nice functions to get the positions for attaching an object, and to get the position of an object that is already attached.

GetVehicleAttachedOffset
GetVehicleAttachedPos


Re: how can i get attached object pos - rockys - 12.04.2019

when i use the include, i recive this error

\include\extra\rotation_extra_object.inc(25) : error 017: undefined symbol "RotatePoint"

@NaS


Re: how can i get attached object pos - NaS - 12.04.2019

Quote:
Originally Posted by rockys
Посмотреть сообщение
when i use the include, i recive this error

\include\extra\rotation_extra_object.inc(25) : error 017: undefined symbol "RotatePoint"

@NaS
Did you include all 3 includes?

Код:
#include <rotation>         // base functions
#include <rotation_misc>    // misc functions
#include <rotation_extra>   // extra functions



Re: how can i get attached object pos - rockys - 13.04.2019

Quote:
Originally Posted by NaS
Посмотреть сообщение
Did you include all 3 includes?

Код:
#include <rotation>         // base functions
#include <rotation_misc>    // misc functions
#include <rotation_extra>   // extra functions
yeaa


Re: how can i get attached object pos - Nero_3D - 13.04.2019

It is enough to include the file you want
PHP код:
#include <rotation_extra> 
But the strange thing is the error, is it the only one?
If it failed to include the main file "rotation.inc" (due to include guard conflicts) you would get way more errors, so I guess that isn't the case but why is RotatePoint missing than?
Another thing is why do you only get it only once if RotatePoint is used twice in rotation_extra_object.inc, what did you do?

Also did you try to compile it in an empty file?, something like
PHP код:
#include <a_samp>
#include <rotation_extra>
main() {} 
If that does compiles without errors than it must be an interferences with other scripts