Jump to content

How to change sword animations with ifp


xuaNN

Recommended Posts

https://wiki.multitheftauto.com/wiki/EngineLoadIFP

https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation

swordAnimations = {
'sword_1',
'sword_2',
'sword_3',
'sword_4',
'sword_block',
'sword_hit_1',
'sword_hit_2',
'sword_hit_3',
'sword_idle',
'sword_part'
}


local IFP = engineLoadIFP( "sword.ifp", 'sword.custom' )

if IFP then
	for i,v in pairs(swordAnimations) do
		engineReplaceAnimation( localPlayer, "sword", v, 'sword.custom', v )
	end
else
	print('Failed to load - ','Sword.ipf')
end

Not tested, but should work, ensure to define it in meta properly and run that client side for everyone.

Edited by CodyJ(L)
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...