Rotating object.
#1

This code will spawn the object, and rotate it 180 degrees:

pawn Код:
CMD:object(playerid, params[])
{
    new Float:XYZ[3];
    GetPlayerPos(playerid, XYZ[0], XYZ[1], XYZ[2]);
    Coffin[playerid] = CreateObject(2896, XYZ[0], XYZ[1], XYZ[2], 0, 0, 0, 100.0);
    MoveObject(Coffin[playerid], XYZ[0], XYZ[1], XYZ[2]+0.0001, 0.0001, 0.0, 0.0, 180.0);
    return 1;
}
But how to make it rotate for like 7 secs and 360 degrees? I tried changing the degree from 180 to 360, but then it wont move at all.
Reply


Messages In This Thread
Rotating object. - by Dan. - 24.07.2012, 11:48
Re: Rotating object. - by [MM]RoXoR[FS] - 24.07.2012, 12:01
Re: Rotating object. - by Dan. - 24.07.2012, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)