Melee combat LUA
I'm using LUA commands to have melee weapons in game (freeride and story). I tried this, but it crashes almost always. What's wrong with my script?
if i==nil then i=0 end i=i+1
if i==5 then i=1 end
if i==1 then
game.game:GetActivePlayer():SetAnimStyle("melee","default")
game.game:GetActivePlayer():SetAnimStyle("common","default")
game.game:GetActivePlayer():ModelToHands(true,-1,1) end
if i==2 then
game.game:GetActivePlayer():SetAnimStyle("melee","PendrekStyle")
game.game:GetActivePlayer():SetAnimStyle("common","ManColdWeapon")
game.game:GetActivePlayer():ModelToHands(true,-1,28) end
if i=then
game.game:GetActivePlayer():SetAnimStyle("melee","BatStyle")
game.game:GetActivePlayer():SetAnimStyle("common","ManColdWeapon")
game.game:GetActivePlayer():ModelToHands(true,-1,32) end
if i==4 then
game.game:GetActivePlayer():SetAnimStyle("melee","KnifeStyle")
game.game:GetActivePlayer():SetAnimStyle("common","ManColdWeapon")
game.game:GetActivePlayer():ModelToHands(true,-1,22) end
P.S. I know about melee weapons in Existenz34's freeride, but I use a different one.
Last post
14 years, 1 month ago
by eXistenZ34
Last post
14 years, 1 month ago
by eXistenZ34
Last post
14 years, 1 month ago
by eXistenZ34
Last post
14 years, 1 month ago
by ocram
Last post
14 years, 1 month ago
by johncena1
Last post
14 years, 1 month ago
by Deewarz
Last post
14 years, 1 month ago
by johncena1
Last post
14 years, 1 month ago
by eXistenZ34
Last post
14 years, 1 month ago
by jaca37
Last post
14 years, 1 month ago
by eXistenZ34
Last post
14 years, 1 month ago
by johncena1
Last post
14 years, 1 month ago
by Director
Last post
14 years, 1 month ago
by johncena1
Last post
14 years, 1 month ago
by johncena1

then