04.01.2013, 13:42
(
Последний раз редактировалось Nonameman; 04.01.2013 в 20:45.
)
Hey,
I'm working on a GPS script, it's nearly finished, but I had to stop working on it beacuse of an annoying problem:
My base idea is when a player uses the /gps cmd in a vehicle, it creates an arrow object, which will be rotated when the global position calculator timer ticks. When that happens, it attach the previously created object to the vehicle with the calculated angle, based on the target destination. The first object attach works, but then the re-attaches doesn't.
I tried it without attaching, too, with SetObjectPos() and SetObjectRot(), but the arrow object doesn't stay at the correct position while the vehicle is moving and it looks bad.
Can you give me some tips, how to solve this problem?
Thanks
Nonameman
EDIT: Solved
I'm working on a GPS script, it's nearly finished, but I had to stop working on it beacuse of an annoying problem:
My base idea is when a player uses the /gps cmd in a vehicle, it creates an arrow object, which will be rotated when the global position calculator timer ticks. When that happens, it attach the previously created object to the vehicle with the calculated angle, based on the target destination. The first object attach works, but then the re-attaches doesn't.
I tried it without attaching, too, with SetObjectPos() and SetObjectRot(), but the arrow object doesn't stay at the correct position while the vehicle is moving and it looks bad.
Can you give me some tips, how to solve this problem?
Thanks
Nonameman
EDIT: Solved