Hi ![]()
The Player into ProAI is simply made, about most ppl just use a own player typ, or want add ProAI to a current project. The weapon system for the AI is basicaly splited up to be 2 systems, one for short ranged attack (most melee) and one for long ranged attack. The system need to have a weapon atached, made as instance from the basic weapon bp.this can be a a melee weapon for short range attack but it could be also a gun, using projectiles. So the shortrange system can handle both, melee as also projectiles.into the AI setup, you can setup 2 attack montage animation for the AI. One for short range and one for long range. Into the ai you can setup the weapon slot with a number, where number 0 means unequiped, number 1 means short range attack and number 2 means longrange attack. There is also a checkbox for using both systems together, or even only the system, compared to the number into the slot.
Now, each of this systems have a uniqe functionality. If you setup only using longranged weapons, this could be a grenade or a rifle, and the player is to near at the AI, then the AI search for a better attack place, about the AI dont want blow up, if he drop a grenade to near.
If you set up only for schort range, number 1, then the AI only use short ranged weapons.
If you using bot systems together, then the AI switch to shortrange attack, if the AI get near to the enemy, instead to use longranged weapon.
So, it needs to have a weapon item (invisible or visible) and it does need for not melee weapons a projectile.
Into the demo game for ProAI, you can see turrets, this is just an instance of the basic aI and it is using both weapon systems. same at mech enemies you can meet into the demo game. The soldiers into the demo game, are using both systems too, but for shortrange attack it use a mele item / weapon.
Now if some one need more as one weapon, then he need to add some more code the AI component, so it could handle more as one gun per weapon system slot. For animal attacks, you easy can use invisible weapons and projectiles to do damage. or using a invisible melee without projectile dmg, but hit attack.