Jump to content

[HELP]Animacao


Recommended Posts


local customBlockName = "myNewBlock"

local IFP = engineLoadIFP( "python.ifp", customBlockName )

if not IFP then
    outputChatBox( "Failed to load'" )
end

function setanimation( test, animationName )
    if IFP then
        setPedAnimation( localPlayer, customBlockName, animationName )
    end
end
addCommandHandler( "animacao", setanimation )

Gente peguei esse codigo da net para ativar uma animacao customizada, mas não estou conseguindo fazer funcionar

Link to comment

Você ta testando 

/animacao nome  

?

  1. local customBlockName = "myNewBlock"
  2.  
  3. local IFP = engineLoadIFP( "python.ifp", customBlockName )
  4.  
  5. if not IFP then
  6. outputChatBox( "Failed to load'" )
  7. end
  8.  
  9. function setanimation( test, animationName )
  10. if IFP then
  11. setPedAnimation( localPlayer, customBlockName, animationName )
  12. end
  13. end
  14. addCommandHandler( "animacao", setanimation )

 

teste por o block das animaçoes python

no myNewBlock

Edited by Furzy
Link to comment
1 hour ago, DNL291 said:
--[[
credits to Paul_Cortez for the IFP file.
parkour.ifp has following animations:

BckHndSpingBTuck
BckHndSping
CartWheel
FrntHndSpring
HandPlant
]]

-- you can choose any name you want, do not choose a default GTA:SA block name
local customBlockName = "myNewBlock"

-- load the IFP file
local IFP = engineLoadIFP( "colt45.ifp", customBlockName )

-- let us know if IFP failed to load
if not IFP then
    outputChatBox( "Failed to load 'parkour.ifp'" )
end

-- replace the crouch animation
engineReplaceAnimation( localPlayer, "ped", "colt45_fire", customBlockName, "HandPlant" )

i try to add a colt45 animation  but don't work

Link to comment
41 minutes ago, murilo2929 said:

--[[
credits to Paul_Cortez for the IFP file.
parkour.ifp has following animations:

BckHndSpingBTuck
BckHndSping
CartWheel
FrntHndSpring
HandPlant
]]

-- you can choose any name you want, do not choose a default GTA:SA block name
local customBlockName = "myNewBlock"

-- load the IFP file
local IFP = engineLoadIFP( "colt45.ifp", customBlockName )

-- let us know if IFP failed to load
if not IFP then
    outputChatBox( "Failed to load 'parkour.ifp'" )
end

-- replace the crouch animation
engineReplaceAnimation( localPlayer, "ped", "colt45_fire", customBlockName, "HandPlant" )

i try to add a colt45 animation  but don't work

when i try put some weapon animation never work.

Have a way to put custom weapons anims? because for  me never work,  the animation always gets buggy

Link to comment
9 hours ago, DNL291 said:

Não precisa escrever em inglês xD

O bloco da anim tá errado no seu código, Deve ser "COLT45" no lugar de "ped".

Além disso, em "HandPlant" deve ser o nome da anim da ifp importada, abra o arquivo e veja se o nome está certo.

Vish é mesmo eu escrevendo em ingles bem bobão achei que estava no forum gringo haha, então mano como consigo abrir o ifp para ver o nome?

Link to comment
1 hour ago, murilo2929 said:

Mano eu percebi que o unico problema e que as pernas do personagem não se movem elas ficar travadas, a animação funciona normal. E isso so acontece com animação de arma se for outra vai normal.

Ai eu nao sei, só algumas animações que permite movimentar no mta, como a CARRY partial

Link to comment

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