29.08.2007, 12:37
Quote:
Originally Posted by BlooDsTainD
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 Код:
} // 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; |
How can u make an anim to stop just by pressing a key (for example the RIGHT SHIFT) without using the /stopanim cmd?