09.03.2013, 03:04
I got a thing with this... I tried putting all my stuff together but the issue is that it just switches to the last camera. It doesnt go like first, second etc. It just goes to the last InterpolateCameraPos
Basically it just shows you the last line.
Or do I need to place it like 1 by 1?
Код:
tutorial(playerid) { switch (camera1) { case 0: { InterpolateCameraPos(playerid, 1494.749877, -1715.429809, 15.321800, 1510.866088, -1718.042114, 16.046100, 3000, 1); InterpolateCameraLookAt(playerid, 1495.684814, -1715.078369, 15.271821, 1513.923583, -1715.473999, 16.283460, 3000, 1); InterpolateCameraPos(playerid, 1510.866088, -1718.042114, 16.046100, 1477.521118, -1580.947265, 39.756080, 6000, 1); InterpolateCameraLookAt(playerid, 1513.923583, -1715.473999, 16.283460, 1480.507080, -1583.469482, 38.906352, 6000, 1); InterpolateCameraPos(playerid, 1477.521118, -1580.947265, 39.756080, 1601.076293, -1625.325927, 18.178905, 3000, 1); InterpolateCameraLookAt(playerid, 1480.507080, -1583.469482, 38.906352, 1601.011840, -1629.324951, 18.241403, 3000, 1); InterpolateCameraPos(playerid, 1601.076293, -1625.325927, 18.178905, 1623.349731, -1669.397949, 19.589576, 3000, 1); InterpolateCameraLookAt(playerid, 1601.011840, -1629.324951, 18.241403, 1619.886474, -1667.445312, 19.149843, 3000, 1); InterpolateCameraPos(playerid, 1623.349731, -1669.397949, 19.589576, 1597.348632, -1740.715942, 17.526355, 3000, 1); InterpolateCameraLookAt(playerid, 1619.886474, -1667.445312, 19.149843, 1595.796142, -1737.030151, 17.457609, 3000, 1); InterpolateCameraPos(playerid, 1597.348632, -1740.715942, 17.526355, 1527.424682, -1719.524169, 17.449405, 3000, 1); InterpolateCameraLookAt(playerid, 1595.796142, -1737.030151, 17.457609, 1529.450317, -1716.075317, 17.402532, 3000, 1); InterpolateCameraPos(playerid, 1527.424682, -1719.524169, 17.449405, 1514.812133, -1675.245971, 23.241209, 3000, 1); InterpolateCameraLookAt(playerid, 1529.450317, -1716.075317, 17.402532, 1518.740844, -1675.363891, 22.498666, 3000, 1); return 1; } } return 1; }
Код:
InterpolateCameraPos(playerid, 1527.424682, -1719.524169, 17.449405, 1514.812133, -1675.245971, 23.241209, 3000, 1); InterpolateCameraLookAt(playerid, 1529.450317, -1716.075317, 17.402532, 1518.740844, -1675.363891, 22.498666, 3000, 1);
Код:
tutorial(playerid) { switch (camera1) { case 0: { InterpolateCameraPos(playerid, 1494.749877, -1715.429809, 15.321800, 1510.866088, -1718.042114, 16.046100, 3000, 1); InterpolateCameraLookAt(playerid, 1495.684814, -1715.078369, 15.271821, 1513.923583, -1715.473999, 16.283460, 3000, 1); } case 1: { InterpolateCameraPos(playerid, 1510.866088, -1718.042114, 16.046100, 1477.521118, -1580.947265, 39.756080, 6000, 1); InterpolateCameraLookAt(playerid, 1513.923583, -1715.473999, 16.283460, 1480.507080, -1583.469482, 38.906352, 6000, 1); } } return 1; }