Cowsins AI
  • Before We Start
    • Introduction & License Agreement
    • Before Getting Started
  • Getting Started
    • How To Install
    • Tutorials
  • Easy Navigation in Cowsins AI
    • Content
    • CowsinsAI.cs
    • EnemyAI.cs
    • Waypoints.cs
  • Unity Toolbar
    • Cowsins AI Setup Handler
    • Cowsins AI Animator Controller Creator
  • AI Setup
    • Old Setup
    • New (Simple) Setup
  • Misc
    • FAQ
Powered by GitBook
On this page
  1. Easy Navigation in Cowsins AI

EnemyAI.cs

You can find this script in Assets > CowsinsAI > Scripts

Public Variables

  • Name - What name will display after death

  • Max Health - What health the AI will max out at

  • Max Shield - What shield the AI will max out at

  • Show UI - Boolean to where a health / shield UI should display or not

  • Health Slider - Slider gameObject that needs to be dragged in from the world to display the health of the AI

  • Shield Slider - Slider gameObject that needs to be dragged in from the world to display the shield of the AI

  • Health Color - What color the Health Slider will adopt in play mode

  • Health Color - What color the Shield Slider will adopt in play mode

  • Damage Pop Up - The graphics of the damage taken on the AI that will pop up when it's taken damage

  • X Variation - How random the text will display horizontally (adjust heavily to preference)

Hidden Variables

  • Health - What health the AI currently has in play mode

  • Shield - What shield the AI currently has in play mode

  • UI - This will automatically be set on play

  • Cai - This will be automatically be set on play (reference to the Cowsins AI script)

  • Animator - This will be automatically be set on play (reference to the Animator)

  • Agent - This will be automatically be set on play (reference to the NavMeshAgent)

PreviousCowsinsAI.csNextWaypoints.cs

Last updated 1 year ago