21.12.2014, 16:24
Hello i facing problem with move object , for real i dont want to move i want to rotate everything works fine excepts speed i set speed to 0.0001 but it still do it instantly no animation the object i want to rotate is barrierturn hare is my code :
Code:
else if(IsPlayerInRangeOfPoint(playerid, 2.0,49.4500000,-1534.1100000,5.0000000))//Pasienis 1 uztvara
{
if(Used[playerid] == 0)
{
MoveDynamicObject(Uztvara[0],49.4500000,-1534.1100000,5.0000000,0.0001,0.0,0.0,84.5000000);
SendClientMessage(playerid, 0xFFFFFFFF, "Uztvara atidaryta!"); //open
Used[playerid] = 1;
return 1;
}
if(Used[playerid] == 1)
{
MoveDynamicObject(Uztvara[0],49.4500000,-1534.1100000,5.0000000,0.0001,0.0000000,270.0000000,84.5000000);
SendClientMessage(playerid, 0xFFFFFFFF, "Uztvara uzdaryta!"); //close
Used[playerid] = 0;
return 1;
}
}

