Skream Posted September 10, 2018 Share Posted September 10, 2018 (edited) Is it just me or engineReplaceAnimation don't work for peds at moment? Worked fine for me for players. I'm just asking it here to make sure before report it as a bug in github I also tried to replace the animation everytime the ped streamIn but still nothing. Edited September 10, 2018 by Skream Link to comment
Skream Posted September 10, 2018 Author Share Posted September 10, 2018 (edited) 21 minutes ago, Saml1er said: Show your code. function initAnimations() for animBlock, animsTable in pairs(animData) do engineLoadIFP(':rio-modpack/animation/ifp/' .. animBlock .. '.ifp', animBlock) end local playersPool, pedsPool = getElementsByType('player'), getElementsByType('ped') replaceAnimations(localPlayer) for _, thePlayer in pairs(playersPool) do if getElementData(thePlayer, 'character:logged_in') then replaceAnimations(thePlayer) end end for _, thePed in pairs(pedsPool) do replaceAnimations(thePed) end end addEventHandler('onClientResourceStart', resourceRoot, initAnimations) function replaceAnimations(theElement) for animBlock, animsTable in pairs(animData) do for _, animName in pairs(animsTable) do engineReplaceAnimation(theElement, animBlock, animName, animBlock, animName) end end end I also tried to do this either addEventHandler('onClientElementStreamIn', root, function() local elemType = getElementType(source) if elemType == 'ped' or elemType == 'player' then replaceAnimations(source) end end) it works fine for players but ped doesn't Edited September 10, 2018 by Skream Link to comment
Saml1er Posted September 10, 2018 Share Posted September 10, 2018 Which animation doesn't work for peds? Is it idle animation? Link to comment
Skream Posted September 10, 2018 Author Share Posted September 10, 2018 (edited) 9 minutes ago, Saml1er said: Which animation doesn't work for peds? Is it idle animation? I have a large IA system for NPCs. They use different animations, at least 30 different animations (100+ peds). It seems to not work at all. I'm using the 1.5.6 version on mta.sa They even respond to certain situations like aiming at them or shooting, getting injured or getting close so animations changes constantly I'm using the gta v ped.ifp that comes with ifp_demo Edited September 10, 2018 by Skream Link to comment
Saml1er Posted September 10, 2018 Share Posted September 10, 2018 Can you name one animation that is not working? Is it a partial animation? It'll be better if you provide me with a basic resource so I can reproduce the problem. Link to comment
Skream Posted September 10, 2018 Author Share Posted September 10, 2018 (edited) try ped handsup for example 6 minutes ago, Saml1er said: Can you name one animation that is not working? Is it a partial animation? It'll be better if you provide me with a basic resource so I can reproduce the problem. sorry I can't copy n past its not that simple cuz I load peds from database they have a default animation (as I said most case unique, database stored) and it changes based with the situation I could record it do you have discord? Edited September 10, 2018 by Skream Link to comment
Saml1er Posted September 10, 2018 Share Posted September 10, 2018 18 minutes ago, Skream said: try ped handsup for example sorry I can't copy n past its not that simple cuz I load peds from database they have a default animation (as I said most case unique, database stored) and it changes based with the situation I could record it do you have discord? Discord: saml1er#8752 Okay, show me the recording then. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now