Editing Attached Vehicle Object
#1

Is there any way i can edit an attachedvehicleobject ?
Because whenever i try EditObject doesn't work.
Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
							
Vehicle_Body_Parts_Object[playerid] = CreateObject(Body_Parts[Vehicle_Body_Parts_Button[playerid]], X, Y, Z, 0, 0, 0);
							
SetObjectMaterial(Vehicle_Body_Parts_Object[playerid], 0, -1, "none", "none", 0xFFFFFFFF);
							
AttachObjectToVehicle(Vehicle_Body_Parts_Object[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SetTimerEx("TuningTimer", 1600, false, "i", playerid);
Код:
function TuningTimer(playerid){
EditObject(playerid, Vehicle_Body_Parts_Object[playerid]);
}
P.S:I had done a timer for a small delay, in case there is a problem with the seconds between creating-editing object.
Reply


Messages In This Thread
Editing Attached Vehicle Object - by vassilis - 26.09.2017, 04:37
Re: Editing Attached Vehicle Object - by jlalt - 26.09.2017, 06:38
Re: Editing Attached Vehicle Object - by Kane - 26.09.2017, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)