Let's start from beginning.
I made a character that uses a rifle in battle, and he's equipped with gun. Skills using gun works fine and there are no problems.
However the problem starts with default Attack Command, because it looks silly when you attack enemy with rifle from really close position (like mafia in '20s dealed with traitors etc). So to make my project look more reliable I had few options to workaround that
problem... All failed...
Last option I came up is to Disable Attack command whenever actor is equipped with ranged weapon (gun, bow, longbow, slingshot etc). And I wrote that code, however it had a major bug. In team there are 8 heroes, and that code disabled Attack Command for all members. I need that Attack is disabled for actor(s) wielding a ranged weapons.
Or... perhaps you have another idea how to make ranged hero with default attack command using meelee weapon (sword, knife etc) and ranged skill that will show ranged weapon (gun, bow, longbow, slingshot etc) when using skill?
I made a character that uses a rifle in battle, and he's equipped with gun. Skills using gun works fine and there are no problems.
However the problem starts with default Attack Command, because it looks silly when you attack enemy with rifle from really close position (like mafia in '20s dealed with traitors etc). So to make my project look more reliable I had few options to workaround that
problem... All failed...
Last option I came up is to Disable Attack command whenever actor is equipped with ranged weapon (gun, bow, longbow, slingshot etc). And I wrote that code, however it had a major bug. In team there are 8 heroes, and that code disabled Attack Command for all members. I need that Attack is disabled for actor(s) wielding a ranged weapons.
Or... perhaps you have another idea how to make ranged hero with default attack command using meelee weapon (sword, knife etc) and ranged skill that will show ranged weapon (gun, bow, longbow, slingshot etc) when using skill?