How can I make that gate ?
#1

How can I make that gate will move good and on speed 4 and with the same rotations of the start created object :

ciagate = CreateDynamicObject(980, 1355.8223, -1486.3730, 15.1283, 0.3000, 1.6200, 60.8400);

Код:
CMD:ciagate(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    if(CIAGateStatus == 0) {
    MoveDynamicObject(cia_gate, 1355.8223, -1486.3730, 8.1283, 2);
    CIAGateStatus = 1;
    }
    else {
    MoveDynamicObject(cia_gate, 1355.8223, -1486.3730, 15.1283, 2);
    CIAGateStatus = 0;
    }
    return 1;
}
Reply
#2

MoveDynamicObject has parameters for rotating the object allready!
Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)