Jump to content

ARMA 3 ANİMATİON ERROR


mucuk6547

Recommended Posts

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

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 by MrTasty
Link to comment
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?

Link to comment

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
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 ?
Link to comment
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:

 

Link to comment
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?

Link to comment

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

 

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