Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
I need to stick cameras to my car. I tried attaching the camera to an already attached object, but I failed miserably. Can you give me the code for that? For example I need the camera on the side of the car looking at the front wheel. Just like one of the camhack views.
Can someone give me the template, so I can figure out how to do them myself?
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Search it on the forums.
Or goto ******, paste: site:forum.sa-mp.com your search
Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
don't you think I've already tried it?
Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
When I reset the camera, I need to destroy the object. how should I define it again in a separate callback?
Posts: 384
Threads: 91
Joined: Oct 2010
Reputation:
0
REP ME PLZ
okay you need to getcarposition attach
new objectid = CreateObject(...);
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
go to mta and create a object onto a car get the object the xyz and the xyz rotation and past it there and createobject with no position just create the object put the cords on the attach to car........... and there u have it attackobject to veh
REP ++ plz i need
Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
thank you, I'll try it tomorrow. Rep to all of you. who answered.