Jump to content

setPedAnimation (Feil)


kalitonchik

Recommended Posts

Posted

Not many people know how to create the Player ore Pedestrian Animation scripts !

If you let me read it ! I'll tell you , where are a normal Example of PedAnimation script !

If anyone understands how to create a working script (I repeat A WORKING ANIM SCRIPT) then help !

http://development.mtasa.com/index.php? ... dAnimation

Syntax

bool setPedAnimation ( ped thePed, [string block=nil, string name=nil, int time=-1,bool loop=true, bool updatePosition=true, bool interruptible=true) )

My Example

setPedAnimation ( ped thePed, ped, WALK_drunk, time=1, loop=true, updatePosition=true,interruptible=true)

That is how I learned how to create ANIM

These screenshoots are from mta sa official nightly build freeroam server

anim01tf0.png

Posted
Ha, you want to say that -> everyone knows how do this animation scripts?

No. I want to say that for most people, it's irrelevant anyway and the ones for who it IS relevant, they mostly already know.

Projects:

Slothbot | Maximap

Posted

You don't understand the syntax posted in the wiki. Your line should be:

setPedAnimation ( thePed, "ped", "WALK_drunk", 1, true, true, true) 

Try that, it should work.

A tip: To stop the animation, just do

setPedAnimation ( thePed ) 

firmatherenexzp0.gif

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...