General
2 armies can auto fight each other now, charge, meet, aim and attack can be automatically calculated by our direct logic engine.
Instructions
Define 2 different Armies by the sphere color
- The agent sphere color can be defined by the Agent Group node sphere color attribute
Define the fight range by sphere radius.
- The agent sphere color can be defined by the Agent Group node sphere color attribute
Enable the auto fight/combat tool by output > Direct Logic > chase by action:?? and fight by action:?? priority 1
When simulating, one agent will automatically find the nearest agent and store it in its memory.
- If agent find its enemy, both these 2 agents will turn into fight mode.
- Then the paired agents will change the action to "chase action" and run toward each other
- When they meet in sphere range, they wil try to switch to "fight action"
- It will try to avoid other agent except the enemy it found.
- Enable dynamic can mark agent mode: dead
- If enemy down, the agent will become "vacancy”, and it will continue seek other agents until finding another enemy and pairing successfully.
- Agents cannot find the dead agents.
We can add variable to chase actions and fight actions using Action Group
Know Issue: currently it not support multiple agents vs 1 agent