EditObject Problem
#1

Hi, i attached a object to another object (to make a nuclear missile) but when i use EditObject the object it works but the object is not moving! Please help what should i do?

Код:
new Silo,
      Silo2
;

public OnGameModeInit()
{
	Silo = CreateObject(17051,27.299999237061,1824.3000488281,16.60000038147,0,0,0,250);
	Silo2 = CreateObject(3502,27.299999237061,1824.0999755859,41.400001525879,90,0,0,250);
	AttachObjectToObject(Silo2,Silo,0.0,0.0,0.0,0.0,0.0,0.0);
	return 1;
}

CMD:do(playerid, params[])
{
	#pragma unused params
	EditObject(playerid,Silo2);
	return 1;
}

public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
Float:fRotX, Float:fRotY, Float:fRotZ,
Float:fScaleX, Float:fScaleY, Float:fScaleZ )
{
	new File[256]; format(File,256,"pakistanforlife.txt");
	if(!dini_Exists(File)) dini_Create(File);
	dini_FloatSet(File,"fOffsetX",fOffsetX);
	dini_FloatSet(File,"fOffsetY",fOffsetY);
	dini_FloatSet(File,"fOffsetZ",fOffsetZ);
	dini_FloatSet(File,"fRotX",fRotX);
	dini_FloatSet(File,"fRotY",fRotY);
	dini_FloatSet(File,"fRotZ",fRotZ);
	dini_FloatSet(File,"fScaleX",fScaleX);
	dini_FloatSet(File,"fScaleY",fScaleY);
	dini_FloatSet(File,"fScaleZ",fScaleZ);
	return 1;
}
Reply


Messages In This Thread
EditObject Problem - still not solved - by dr.lozer - 20.01.2013, 06:52
Re: EditObject Problem - by RenSoprano - 20.01.2013, 06:57
Re: EditObject Problem - by dr.lozer - 20.01.2013, 09:23
Re: EditObject Problem - by dr.lozer - 20.01.2013, 14:51
Re: EditObject Problem - by RoboN1X - 20.01.2013, 15:04
Re: EditObject Problem - by dr.lozer - 20.01.2013, 16:21
Re: EditObject Problem - by Threshold - 20.01.2013, 16:39
Re: EditObject Problem - by dr.lozer - 21.01.2013, 12:09
Re: EditObject Problem - by dr.lozer - 22.01.2013, 04:59

Forum Jump:


Users browsing this thread: 3 Guest(s)