Skip to content
John Pan edited this page May 1, 2017 · 1 revision

LSAgent is the essence of agents. To create an agent, create an empty GameObject and add the LSAgent component. Also create a sphere and child it under the agent so we can visualize it.

Change the LSBody shape to Circle to give the agent substance.

Add HeightSet and Health components. HeightSet allows the unit to stay above terrain and Health allows it to be targeted and killed by TestAgent.

Make a prefab for the new agent then set it up in the database so LS can spawn it. The name must be unique from other agents in the database. I chose TutorialAgent.

Set AutoSpawner in Manager to automatically spawn the agent.

Start up the game and watch your new, helpless TutorialAgents die to TestAgents!

Clone this wiki locally