how can i get attached object pos
#1

how can i get postion of attached object vehicle

or how to update attached object vehicle?
Reply
#2

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

when i use the include, i recive this error

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

@NaS
Reply
#4

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
Reply
#5

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)