[HELP] Editing vehicle attachments.
#1

I'm trying to make gun editing in vehicle, like in lsrp. The arrows are showing up, but i cloudn't move.
I'm using just
new vehicleid = GetPlayerVehicleID(playerid);
new ranche = CreateObject(3026, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0);
EditAttachedObject(vehicleid, 1);
or
EditObject(playerid, ranche);

its same problem for the either. And, its already setted to attach..
Reply
#2

EditObject doesn't work on vehicles as far sa I know
Reply
#3

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
EditObject doesn't work on vehicles as far sa I know
Something like that...https://www.youtube.com/watch?v=oIUi0wRKQYU 02:00 min
Reply
#4

They might just use CreateObject, then EditObject. When you click save, it does AttachObjectToVehicle and subtracts the objects pos from the vehicle's pos.

IE if you create the object at the vehicle's position, then move it up, say the vehicle's Z position is 17.65 and you've moved the obejct to 18.65, attachobjecttovehicle(vehicleposx vehicleposy 17.65-vehicleposz) which would = 1.
Reply
#5

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
They might just use CreateObject, then EditObject. When you click save, it does AttachObjectToVehicle and subtracts the objects pos from the vehicle's pos.

IE if you create the object at the vehicle's position, then move it up, say the vehicle's Z position is 17.65 and you've moved the obejct to 18.65, attachobjecttovehicle(vehicleposx vehicleposy 17.65-vehicleposz) which would = 1.
Makes sense
Reply
#6

Check out this gamemode: https://sampforum.blast.hk/showthread.php?tid=646191 .

It has the system you're referring to; you can use it to learn off it.
Reply
#7

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Check out this gamemode: https://sampforum.blast.hk/showthread.php?tid=646191 .

It has the system you're referring to; you can use it to learn off it.
I think its only placing a gun in a trunk without any editing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)