Good morning,
I have a project with my colleagues to make an RPG that looks like Dragon Age 2. We control a team of 4 people and only one character is active and is controlled by the player. Your character must be able to target an enemy and move in their direction until they are in range to attack. At the same time, the player must be able to cancel his action if he wishes to cancel his attack and just move, for example. How should I go about it?
I tried with the target settings in battle using the "individual target Settings" but I couldn't get it to work.
Thank you so much
Canceling an action can be done using schematics, e.g. using the Stop Battle Action node (active actions) or the Remove Battle Actions node (scheduled actions). Both can be set up to stop/remove the actions of a specific combatant.
The group/individual targets are used to 'mark' a combatant as a target for the group or an individual combatant. Other functionality (e.g. control maps, battle AI, battle menu, etc.) can use those for targeting.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Generally, I'd guess that the combatant or game is in a state where movement or using actions is blocked by something. You can check a combatant's states via their game object's inspector, e.g. if they are in action, if their move AI is blocked, etc.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!