mucuk6547 Posted November 2, 2018 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
Addlibs Posted November 2, 2018 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
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 43 minutes ago, 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. Can you make me the necessary code, please?
Z4Zy Posted November 2, 2018 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" )
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 18 minutes ago, 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" ) he's gonna work without normal aim ?
Z4Zy Posted November 2, 2018 Posted November 2, 2018 3 minutes ago, mucuk6547 said: he's gonna work without normal aim ? when you replace the 'weapon_crouch' animation, your custom animation will run when you crouch with a weapon [ press 'C' ].
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 1 minute ago, DeadthStrock said: when you replace the 'weapon_crouch' animation, your custom animation will run when you crouch with a weapon [ press 'C' ]. 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:
Z4Zy Posted November 2, 2018 Posted November 2, 2018 as 'weapon_crouch' animation replaced, you can use that code and modify it to replace the walking animation.
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 2 minutes ago, DeadthStrock said: as 'weapon_crouch' animation replaced, you can use that code and modify it to replace the walking animation. 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
Z4Zy Posted November 2, 2018 Posted November 2, 2018 you should have the IFP file with correct weapon down animation. do you have one ?
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 2 minutes ago, DeadthStrock said: you should have the IFP file with correct weapon down animation. do you have one ? I don't have one, but I'm going to have a job, I just want a military walk, please do it.
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 3 minutes ago, DeadthStrock said: so do you have military walk animation's IFP ? unfortunately there is no where to find it.
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 17 minutes ago, DeadthStrock said: but you must need that IFP to replace the anim https://www.sendspace.com/file/jskfzu I found this so you can run it without pressing a button. 22 minutes ago, DeadthStrock said: but you must need that IFP to replace the anim -- 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?
Z4Zy Posted November 2, 2018 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>
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 12 minutes ago, 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> Please write me the walking commands at mta.
Z4Zy Posted November 2, 2018 Posted November 2, 2018 31 minutes ago, mucuk6547 said: Please write me the walking commands at mta. what do you mean by that ? commands for set player walking animations ? replace current animations with custom ones ?
mucuk6547 Posted November 2, 2018 Author Posted November 2, 2018 animation does not work when you change kanka weapon_crouch 1 hour ago, DeadthStrock said: what do you mean by that ? commands for set player walking animations ? replace current animations with custom ones ?
Z4Zy Posted November 2, 2018 Posted November 2, 2018 12 minutes ago, mucuk6547 said: animation does not work when you change kanka weapon_crouch what animation does not work ?
delta1337 Posted November 3, 2018 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
mucuk6547 Posted November 3, 2018 Author Posted November 3, 2018 6 hours ago, 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 Do you know any more?
delta1337 Posted November 3, 2018 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
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