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

Titre: ApplyAnimation
Posté par: scott1 le 22 Mars 2010, 13:24:40
Bonjour, j'ai un soucis avec cette fonction, sur wiki samp, il ya

Citer
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
Titre: Re : ApplyAnimation
Posté par: chneubeul le 23 Mars 2010, 17:55:39
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.
Titre: Re : ApplyAnimation
Posté par: scott1 le 23 Mars 2010, 19:55:18
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?
Titre: Re : ApplyAnimation
Posté par: BuBuNo le 24 Mars 2010, 13:57:58
ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,0,1,0);  ;)
Titre: Re : ApplyAnimation
Posté par: scott1 le 24 Mars 2010, 23:22:03
Merci mais ça ne fonctionne pas ^^
Titre: Re : ApplyAnimation
Posté par: BuBuNo le 25 Mars 2010, 16:51:08
Regarde sur le Wiki petetre que sa d'aidera ;) http://wiki.sa-mp.com/wiki/ApplyAnimation (http://wiki.sa-mp.com/wiki/ApplyAnimation)
Titre: Re : ApplyAnimation
Posté par: scott1 le 25 Mars 2010, 22:19:46
Regarde mon premier poste ^^, je cite le wiki, mais ça ne m'a pas aidé
Titre: Re : ApplyAnimation
Posté par: cristab le 26 Mars 2010, 08:35:38


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 ??
Titre: Re : ApplyAnimation
Posté par: S!m le 26 Mars 2010, 14:35:13
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++
Titre: Re : ApplyAnimation
Posté par: scott1 le 26 Mars 2010, 23:06:16
Oui Cristab, en fait Sim j'aimerais l'appliquer a celle ci

"PED","IDLE_chat"

Merci pour votre aide