GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: scott1 le 22 Mars 2010, 13:24:40
-
Bonjour, j'ai un soucis avec cette fonction, sur wiki samp, il ya
ApplyAnimation(playerid, animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5)
playerid The id of the player to apply the animation to.
animlib[] The library name of the animation.
animname[] The name of the animation.
fS The animation speed of the animation.
opt1 Loop 0/1.
opt2 This can be named LockX. This basically stores the player position when they perform an animation that requires them to move. When the animation is done, it puts them back to their original position before the animation started, if set to 0. Opposite effect if it's set to 1.
opt3 This can be named LockY. This basically stores the player position when they perform an animation that requires them to move. When the animation is done, it puts them back to their original position before the animation started, if set to 0. Opposite effect if it's set to 1.
opt4 Will freeze the player in the position the animation finishes.
opt5 Timer in millisecconds. For a never ending loop it should be 0.
J'ai cherché, mais je ne sais pas ce que je dois mettre pour que le joueur puisse bouger quand il excécute l'anim. Merci d'avance
-
Salut, sa dépend des animations mais regarde la dernière infos c'est si tu veux freezer le joueur à la fin de l'animation utile pour les animations courtes.
-
Regarde celle ci
ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,0,0,0);
ça me freeze, je ne peux bouger, que pense tu que je devrais changer?
-
ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,0,1,0); ;)
-
Merci mais ça ne fonctionne pas ^^
-
Regarde sur le Wiki petetre que sa d'aidera ;) http://wiki.sa-mp.com/wiki/ApplyAnimation (http://wiki.sa-mp.com/wiki/ApplyAnimation)
-
Regarde mon premier poste ^^, je cite le wiki, mais ça ne m'a pas aidé
-
J'ai cherché, mais je ne sais pas ce que je dois mettre pour que le joueur puisse bouger quand il excécute l'anim. Merci d'avance
As tu deja vu sa hors de MTA ??
-
Salut,
j'ai remarqué en jouant que certaines anims permettre de le faire (les animations très courtes ou ne consistant qu'en un mouvement des bras etc...) et d'autres non....j,ai un doute que ce soit possible avec toutes les animations
++Sim++
-
Oui Cristab, en fait Sim j'aimerais l'appliquer a celle ci
"PED","IDLE_chat"
Merci pour votre aide