31.08.2012, 17:34
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:
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 | } }