Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.Get.NearGameObject Class Reference

Detailed Description

Searches for nearest object in offset by tag and layer.

Very primitive and slow action. Try to use modules targeted on objects detection.

Inheritance diagram for Doloro.AI.Get.NearGameObject:
Collaboration diagram for Doloro.AI.Get.NearGameObject:

Public Member Functions

override Result Pass (Brain ai)
 Searching for nearest object in offset by bundle and layer. More...
 
virtual void Init (Brain ai)
 Calling one time when AI initializing. More...
 
virtual void End (Brain ai)
 Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail More...
 

Public Attributes

bool existCheck = true
 If true, then search for the new object only if the sourceBuffer of object in memory is isEmpty or not active.
 
string saveToVariable_Title = "NearGO"
 Variable in AI's memory that contains the search targetBuffer
 
string tagFilter = ""
 Tag of object that will searched.
 
int layerID = -1
 The layer where was started search.
 
float searchDistanceLimit = 1000
 Radius from search point where was fining an objects.
 
bool invertedResult = false
 If true then return Success if any object not found.
 

Properties

PipelineItem self [get, set]
 Reference to node that contains this action.
 
virtual DataManagement.DynamicResources.Version version [get]
 Source version. More...
 
virtual string author [get]
 Source author.
 

Member Function Documentation

◆ End()

virtual void Doloro.AI.Action.End ( Brain  ai)
virtualinherited

Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail

Parameters
aiSource AI entity.

Reimplemented in Doloro.AI.Parallel, and Doloro.AI.LogicCoresRoot.

◆ Init()

◆ Pass()

override Result Doloro.AI.Get.NearGameObject.Pass ( Brain  ai)
virtual

Searching for nearest object in offset by bundle and layer.

Parameters
aiSource AI entity.
Returns
Result of search.

Implements Doloro.AI.Action.

Property Documentation

◆ version

virtual DataManagement.DynamicResources.Version Doloro.AI.Action.version
getinherited
Initial value:
=
DataManagement.DynamicResources.Version._100

Source version.

Should be a constant value that defines what a version of relevant source is. Could be use for patching of the data according with version changes.


The documentation for this class was generated from the following file: