Enemy AI
To make an AI, just replace the ProdigyAgent
with ProdigyAgentAi
.
All Characters in Prodigy work the same way. The AI just has to figure out what inputs to feed components in order to get what it wants.
For example: The default AI uses built in NavMesh
. It will look around for a target, assign the target position in the NavMesh
component, then look at the resulting desiredVelocity
in order to know what Move and Look inputs should be.
For Example: When it thinks it should fire, it will just change the Input Fire1 bool to true.
The normal Agent classes are always reading the current input, so when the AI changes them they will go ahead and perform like they normally would as if a Player were making those inputs. This standardizes all character behavior.
Last updated