Table of Contents

Class PersonAi

Namespace
TinyLife.Objects
Assembly
Tiny Life.dll

This class holds the artificial intelligence implementation for a Person. The AI automatically selects actions based on their ActionType.AiSettings.

public class PersonAi
Inheritance
PersonAi
Inherited Members
Extension Methods

Methods

StartAutomatically(Person, ActionType, bool)

Causes a person to start the given action automatically with the same behavior that it would have if started by the PersonAi

public static bool StartAutomatically(Person person, ActionType type, bool priority = false)

Parameters

person Person

The person who should start the action

type ActionType

The action to start

priority bool

Whether to add this action to the start of the action queue rather than the end

Returns

bool

Whether the action was successfully started