Skip to content

AI Toolkit

⌘K
  • Editor Tools
    • Subsystem Creator
    • AI Creator
  • Relationships
  • Perception
  • Health & Damage
  • Memory
    • Debugging
  • Targeting
    • The Settings
    • The Data
    • The Events
    • The Functions
    • The Actions
  • Pathfinding
    • The Actions
  • Interaction
  • Command
  • Aggression
  1. Home
  2. Docs
  3. AI Toolkit
  4. Targeting
  5. The Functions

The Functions

VisAI - Functions
Has Valid Target Actor Function - Checks to see if the AI has a valid enemy in the blackboard.
Is Current Target in Sight Function - Checks the blackboard to see if the current enemy is in sight.
Get Distance to Main Target Function - Get the distance to the main target.
Get Nav Distance to Main Target Function - Gets the nav distance to the main target.
Get Nearest Target Function - Gets the Nearest Target, and Returns it.
Is Actor Enemy or Target Function - Takes a character, checks it's class, and compares it to the "Enemy Types" setting variable in the blueprint. Returns true if the target is an enemy.
Is Actor Target Function - Checks the Actor and returns true if the actor is a target.
Any Targets Function - Returns true if there are any targets in the objects checked.
Get Nearest Target in Sight Function - Gets the nearest target in sight and returns it.
Get Random Target Function - Gets a random target and returns it.
Get Random Target in Sight Function - Gets a random target in sight and returns it.

Doc navigation

← The EventsThe Actions →
Still stuck? How can we help?
Updated on June 26, 2021
Was this article helpful to you? No Yes

How can we help?

VisAI | © 2019-2025 Visualistic Studios LLC

Scroll to top
  • Home
  • Download
  • Documentation
    • Getting Started
    • The Behaviour Foundation
    • AI Toolkit