Help - 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: Help (
/showthread.php?tid=423019)
Help -
IIKINGII - 16.03.2013
I want to attach this object and vehicle to each other
pawn Код:
CreateObject(1575, 0.59, -2.29, 1.16, 0.00, 0.00, 0.00);
CreateVehicle(579, 0.0000, 0.0000, 0.0000, 0.0000, -1, -1, 100);
I've looked at samp wiki but it does not work ??
Re: Help -
Jstylezzz - 16.03.2013
Can you show us the code you used to attach them?
Re: Help -
Bicentric - 16.03.2013
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
pawn Код:
AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)
You will need to create a variable to store the object and vehicle id.
Example which can be run in OnGameModeInit etc...
pawn Код:
new ObjectID, VehcileID;
ObjectID = CreateObject(1575, 0.59, -2.29, 1.16, 0.00, 0.00, 0.00);
VehcileID = CreateVehicle(579, 0.0000, 0.0000, 0.0000, 0.0000, -1, -1, 100);
AttachObjectToVehicle(ObjectID, VehicleID, 0.000,0.000,0.000, 0.000, 0.000, 0.000);
Re: Help -
IIKINGII - 16.03.2013
Thanks guys i have solved out
Re: Help -
IIKINGII - 16.03.2013
But one thing the object is not in the right place?