» Topics

Home / Forums / Topics

Viewing 15 topics - 781 through 795 (of 1,433 total)

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=smile3.gif 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.

How to change normal map to JAs map?

Started by jaca37 2 voices 1 replies
Last post
14 years, 1 month ago

Free Ride for DLC Joe’s Adventures v2.0

Started by eXistenZ34 39 voices 281 replies
Last post
14 years, 1 month ago

A little drag race maybe?

Started by crazypreacher 5 voices 6 replies
Last post
14 years, 1 month ago

[MAFIA II] How to decompile lua files ?

Started by Deewarz 4 voices 10 replies
Last post
14 years, 1 month ago

Even More Choice of Clothes For Tommy…

Started by johncena1 2 voices 7 replies
Last post
14 years, 1 month ago

I would like a Mod

Started by crazypreacher 4 voices 3 replies
Last post
14 years, 1 month ago

Reflective Texture

Started by johncena1 1 voices 0 replies
Last post
14 years, 1 month ago

[MAFIA II] Entities ?

Started by Deewarz 2 voices 1 replies
Last post
14 years, 1 month ago

Multiple models under one script.

Started by jaca37 3 voices 4 replies
Last post
14 years, 1 month ago
Last post
14 years, 1 month ago

My Battlefield 3 Stats

Started by johncena1 2 voices 9 replies
Last post
14 years, 1 month ago

Earn money with snow shoveling

Started by Director 3 voices 4 replies
Last post
14 years, 1 month ago

Fun Little Puzzle Game (Free to Play)

Started by johncena1 1 voices 0 replies
Last post
14 years, 1 month ago

Once upon a time

Started by crazypreacher 3 voices 7 replies
Last post
14 years, 1 month ago

Taxi

Started by BomberX60 5 voices 12 replies
Last post
14 years, 1 month ago
Viewing 15 topics - 781 through 795 (of 1,433 total)