SA-MP Forums Archive
Making Animation - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Making Animation (/showthread.php?tid=279430)



Making Animation - -CaRRoT - 27.08.2011

Well , I wanted to make Animations in car , you know.. to relax on the seat and these things , Anyway - This is the first animation i am trying to do , but when i try it IG it don't work , look :;


pawn Код:
if(strcmp(cmd, "/sitc", true) == 0) { ApplyAnimation(playerid,"PED","Sit_relaxed",4.0,0,0,0,0,0); return 1; }

If someone can give me a link of tutorial on SAMP Forums.. i searched but didn't find , i used wiki but as you see it didn't work.. Anyway , if you can help me please say


Re: Making Animation - iggy1 - 27.08.2011

Look in gl_actions.pwn that comes with the server in the filterscripts folder and find the function "PreloadAnimLib". That helps with animations that need applying twice before working.
There's a good tool in my sig that helps create animations.


Re: Making Animation - -CaRRoT - 27.08.2011

Alright thanks , but can you tell me what's wrong in that Animation i made ?

(Note : gave you rep)


Re: Making Animation - iggy1 - 27.08.2011

Not sure try this one (with loop/forcesync set to 1)

pawn Код:
ApplyAnimation(playerid,"PED","Sit_relaxed",4.0,1,0,0,0,0,1)



Re: Making Animation - -CaRRoT - 27.08.2011

no.. not working


Re: Making Animation - Gagi_Corleone - 27.08.2011

Код:
ApplyAnimation(playerid,"LOWRIDER","Sit_relaxed",4.0,1,0,0,0,0,1)
You are wrong library name of the animation.


Re: Making Animation - -CaRRoT - 27.08.2011

Worked , Thanks man

but how to get the libabry name ?

(gave you rep)


Re: Making Animation - Gagi_Corleone - 27.08.2011

Quote:
Originally Posted by Breto
Посмотреть сообщение
Worked , Thanks man

but how to get the libabry name ?

(gave you rep)
https://sampwiki.blast.hk/wiki/Animations
example: AIRPORT that is Libary name but you can in MTA see libary names


Re: Making Animation - -CaRRoT - 27.08.2011

Agh.. how in MTA ?


Re: Making Animation - Gagi_Corleone - 27.08.2011

Quote:
Originally Posted by Breto
Посмотреть сообщение
Agh.. how in MTA ?
When you press Test then press F1 and there you have the anim click on that and choose animation.