Demonstrates how to spawn and move opposing agents as well as listen to world events.
Establish groups for agents and relationships between the groups.
Hit play and see 3 different agents spawn, an opfor, a blufor, and a civilian. All of the agents will begin to move and the opfor and blufor will attack each other. In the on screen log, you will see events that are happening during the course of the simulation.
Assets/Ride/Examples/Groups/ExampleApiFunctions.unity
Add this script to an object in your scene to spawn and move agents and listen to world events. Modify as needed to suit your own needs.