Class PersonAi
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
PersonThe person who should start the action
type
ActionTypeThe action to start
priority
boolWhether to add this action to the start of the action queue rather than the end
Returns
- bool
Whether the action was successfully started