mucuk6547 Posted November 2, 2018 Share Posted November 2, 2018 Hi, I'm trying to do 3 animations but I'm trying to do how the client is going to be an error in the metadata or the metadata. CLİENT CODE local customBlockName = "ped" -- load the IFP file local IFP = engineLoadIFP( "ped.ifp", customBlockName ) -- let us know if IFP failed to load if not IFP then outputChatBox( "Failed to load 'ped.ifp'" ) end -- replace the crouch animation engineReplaceAnimation( localPlayer, "ped", "ped", customBlockName, "ped" ) META CODE <meta> <info author="MUCUK" version="0.1" type="script"/> <script src="client.lua" type="client"/> <file src="ped.ifp" /> </meta> İFP LİNKS:http://www.mediafire.com/file/jhj32kgys6yznl2/Arma+3+Anims.rar pls help me Link to comment
Addlibs Posted November 2, 2018 Share Posted November 2, 2018 (edited) Is this an error or a bug? That is, is there an actual error message that you could provide us, or does this code simply not do what you intended it to do? If its the latter, I'd point towards this line engineReplaceAnimation( localPlayer, "ped", "ped", customBlockName, "ped" ) -- ^block ^animation name (doesn't exist) and the fact that there isn't an animation named "ped" in the ped block. Edited November 2, 2018 by MrTasty Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 13:24, MrTasty said: Is this an error or a bug? That is, is there an actual error message that you could provide us, or does this code simply not do what you intended it to do? If its the latter, I'd point towards this line engineReplaceAnimation( localPlayer, "ped", "ped", customBlockName, "ped" ) -- ^block ^animation name (doesn't exist) and the fact that there isn't an animation named "ped" in the ped block. Expand Can you make me the necessary code, please? Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 As and example, if you want to replace the current 'weapon_crouch' animation of the player with animation in your IFP file, try below code with your existing meta file. local customBlockName = "pedAnims" -- load the IFP file local IFP = engineLoadIFP( "ped.ifp", customBlockName ) -- let us know if IFP failed to load if not IFP then outputChatBox( "Failed to load 'ped.ifp'" ) end -- replace the crouch animation engineReplaceAnimation( localPlayer, "ped", "weapon_crouch", customBlockName, "weapon_crouch" ) Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 14:25, DeadthStrock said: As and example, if you want to replace the current 'weapon_crouch' animation of the player with animation in your IFP file, try below code with your existing meta file. local customBlockName = "pedAnims" -- load the IFP file local IFP = engineLoadIFP( "ped.ifp", customBlockName ) -- let us know if IFP failed to load if not IFP then outputChatBox( "Failed to load 'ped.ifp'" ) end -- replace the crouch animation engineReplaceAnimation( localPlayer, "ped", "weapon_crouch", customBlockName, "weapon_crouch" ) Expand he's gonna work without normal aim ? Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 On 02/11/2018 at 14:44, mucuk6547 said: he's gonna work without normal aim ? Expand when you replace the 'weapon_crouch' animation, your custom animation will run when you crouch with a weapon [ press 'C' ]. Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 14:49, DeadthStrock said: when you replace the 'weapon_crouch' animation, your custom animation will run when you crouch with a weapon [ press 'C' ]. Expand can you also change the engagement of walking? can you please please Can you do this, please do not bother you with clientli and meta xml li. LİNK: Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 as 'weapon_crouch' animation replaced, you can use that code and modify it to replace the walking animation. Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 15:00, DeadthStrock said: as 'weapon_crouch' animation replaced, you can use that code and modify it to replace the walking animation. Expand I'm doing it but it doesn't work example I'm doing a weapon_down but it doesn't work what should I do Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 you should have the IFP file with correct weapon down animation. do you have one ? Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 15:06, DeadthStrock said: you should have the IFP file with correct weapon down animation. do you have one ? Expand I don't have one, but I'm going to have a job, I just want a military walk, please do it. Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 so do you have military walk animation's IFP ? Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 15:18, DeadthStrock said: so do you have military walk animation's IFP ? Expand unfortunately there is no where to find it. Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 but you must need that IFP to replace the anim Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 15:30, DeadthStrock said: but you must need that IFP to replace the anim Expand https://www.sendspace.com/file/jskfzu I found this so you can run it without pressing a button. On 02/11/2018 at 15:30, DeadthStrock said: but you must need that IFP to replace the anim Expand -- replace the crouch animation engineReplaceAnimation( localPlayer, "ped", "weapon_crouch", customBlockName, "weapon_crouch" ) the weapon doesn't work when changing the crouch sample doesn't work with the weapon walk What should I do? Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 I tested the below script with the IFP file that you have posted with the link https://www.sendspace.com/file/jskfzu . There's no error with weapon and weapon walk after replacing the animation. client side :- local customBlockName = "pedAnims" -- load the IFP file local IFP = engineLoadIFP( "ped.ifp", customBlockName ) -- let us know if IFP failed to load if not IFP then outputChatBox( "Failed to load 'ped.ifp'" ) end -- replace the crouch animation engineReplaceAnimation( localPlayer, "ped", "weapon_crouch", customBlockName, "weapon_crouch" ) meta file :- <meta> <script src="client.lua" type="client" /> <file src="ped.ifp" /> </meta> Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 On 02/11/2018 at 16:17, DeadthStrock said: I tested the below script with the IFP file that you have posted with the link https://www.sendspace.com/file/jskfzu . There's no error with weapon and weapon walk after replacing the animation. client side :- local customBlockName = "pedAnims" -- load the IFP file local IFP = engineLoadIFP( "ped.ifp", customBlockName ) -- let us know if IFP failed to load if not IFP then outputChatBox( "Failed to load 'ped.ifp'" ) end -- replace the crouch animation engineReplaceAnimation( localPlayer, "ped", "weapon_crouch", customBlockName, "weapon_crouch" ) meta file :- <meta> <script src="client.lua" type="client" /> <file src="ped.ifp" /> </meta> Expand Please write me the walking commands at mta. Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 On 02/11/2018 at 16:30, mucuk6547 said: Please write me the walking commands at mta. Expand what do you mean by that ? commands for set player walking animations ? replace current animations with custom ones ? Link to comment
mucuk6547 Posted November 2, 2018 Author Share Posted November 2, 2018 animation does not work when you change kanka weapon_crouch On 02/11/2018 at 17:02, DeadthStrock said: what do you mean by that ? commands for set player walking animations ? replace current animations with custom ones ? Expand Link to comment
Z4Zy Posted November 2, 2018 Share Posted November 2, 2018 On 02/11/2018 at 17:05, mucuk6547 said: animation does not work when you change kanka weapon_crouch Expand what animation does not work ? Link to comment
delta1337 Posted November 3, 2018 Share Posted November 3, 2018 Here, https://community.multitheftauto.com/index.php?p=resources&s=details&id=15603 take this, i think it is what ur lookin for Link to comment
mucuk6547 Posted November 3, 2018 Author Share Posted November 3, 2018 On 03/11/2018 at 02:28, delta1337 said: Here, https://community.multitheftauto.com/index.php?p=resources&s=details&id=15603 take this, i think it is what ur lookin for Expand Do you know any more? Link to comment
delta1337 Posted November 3, 2018 Share Posted November 3, 2018 What do you mean with any more? You can chek out some blogspots to seek for custom animations, if you find some of them, i can tell you how you need to add them 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