Jump to content

Help How to add animated object


Hani2001

Recommended Posts

Posted

It's not possible to animate object. Only possible way as Keiichi1 said:

bool moveObject ( object theObject, int time, float targetx, float targety, float targetz, [ float moverx, float movery, float moverz, string strEasingType, float fEasingPeriod, float fEasingAmplitude, float fEasingOvershoot ] )

In later versions, you may able to animate Peds. In (maybe) 1.5.6 there is a function called

ifp engineLoadIFP ( string ifp_file / string raw_data, string CustomBlockName )

where you can include IFP, and then use it with

bool setPedAnimation ( ped thePed [, string block=nil, string anim=nil, int time=-1, bool loop=true, bool updatePosition=true, bool interruptable=true, bool freezeLastFrame=true, int blendTime=250] )

Good luck :)

Posted
2 hours ago, sanyisasha said:

In later versions, you may able to animate Peds. In (maybe) 1.5.6 there is a function called

engineLoadIFP has  already been added as of 1.5.5 r12195 and is available in-game. The current latest version as of now is 1.5.5 r12411

  • Sad 1
Posted
2 hours ago, Hani2001 said:

So now I can not make it in version 1.5.5
So I will wait 1.5.6

I heard IFP support only avaiable in 1.5.6 and 1.5.5 Nightly versions. (Nightly: not stable, only developer version. Good for making script before updates.)

Posted (edited)

If your MTA 1.5.5 build version is beyond r12195, then you can access that function.

@Hani2001that's not a ped object. It will not work. Current IFP animations only work for ped (skinned) objects.

Edited by Saml1er

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...