ExampleGroups

Purpose

Establish groups for agents and relationships between the groups. 

How to Use

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.  

Scene Location & Name

Assets/Ride/Examples/Groups/ExampleApiFunctions.unity

Setup Requirements 

The ExampleApiFunctions script was added to the game object named “Example”.
 
A navigation mesh was generated from the plane in the scene.

ExampleApiFunctions Script

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. 

Scroll Up