Maybe samp bug or not?
#1

Hello everybody. I have problem. I use AttachObjectToVehicle function, but sometimes object drops from vehicle and freezes in air.


When vehicle destroys I destroy this object but somtimes it doesn't disappear.
This is my code of attaching object:

Код:
forward Krauna(veh);
public Krauna(veh)
{
	if(IsVehicleInRangeOfPoint(veh,10,-1845.4242,169.1431,15.1172))
	{
		deze[veh] = CreateObject(3571,0.0,0.0,50.0,0.0,0.0,0.0);
		AttachObjectToVehicle(deze[veh], veh, 0.009999, -5.150070, 1.178000, 0.000000, 15.376512, -90.047943); //Object Model: 3571 |
	}
}
Reply
#2

Anyone can help?
Reply
#3

Somebody?
Reply
#4

Have you tried using AttachDynamicObjectToVehicle? i currently use it, pretty sure it's already defined on streamer.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)