Hi, i'm new to this community, so hello everyone!
I try to implements melee attacks in the game, but nothing seems to work
I followed this tutorials:
http://www.garagegames.com/community/re ... 2#comments
a) create a new file under /art/datablocks/weapons/cricketbat.cs
b) paste in the Datablock and Image info from above
c) add a line to art/datablocks/datablockExec.cs ... to exec the new cricketbat.cs file
d) open scripts/server/weapon.cs and add the onFire and Melee_Attack functions
e) put the $melee_check2hit definition at the top of the ::Melee_Attack() function
I have got also added in player.cs :
mainWeapon = Sword;
maxInv[Sword] = 1;
Nothing seems to work, when i left click nothing appears on the console, i tried to put some echo in the functiun to check if they are lauched but nothing happened.
I precise i have no animation for my weapons for the moment, just a DAE file i've downloaded from a site for the 3d model. And when the game start the player has no weapons.
Thanks for reading,