04.07.2007, 13:40
Servers with looping animations and /stopanim command to stop animations have it just instantly click the character into the default position. with the following animation code you can have them move into the idle position more smoothly without it looking crappy, watch the video if you dont know what i mean, the first example in the video is taken from an existing server, the second is using the following code.
http://www.youtube.com/watch?v=khO6F1gx4cU
http://www.youtube.com/watch?v=khO6F1gx4cU
Код:
} // Leave animation if (strcmp("/stop", cmdtext, true) == 0) { ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0); // Leave animation SendClientMessage(playerid, 0xFF0000FF, ""); return 1;