Skip to main content

GreaterGotera

A class in Root.Township, Alta.Intelligence.

Creature class for the Greater Gotera boss: a body, a passive set and an optional stunned action, with no view cone. Server AI; Killed runs on both sides.

Constructors​

MemberWhat it is
GreaterGotera()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

6 private and internal fields
MemberWhat it is
private Transform bodyTransform whose position is the creature's Position.
private string killedAnimatorBooleanAnimator bool set on death. Default "Killed".
private ActionComponentSet passiveActionsThe action set the creature starts with.
private static Dictionary<ActionComponentSet, ActionSet<GreaterGotera>> passiveActionSetMapStatic cache of the action set built from each passive set asset.
private ActionComponent stunnedActionThe action component for the stunned action. May be empty.
private static Dictionary<ActionComponent, ActionTarget<GreaterGotera>> stunnedActionMapStatic cache of the stunned action built from each action component.

Properties​

MemberWhat it is
override Vector3 Position { get; }The body transform's position.
ActionTarget<GreaterGotera> Stunned { get; private set; }The stunned action, if the prefab has one.

Methods​

MemberWhat it is
void Stun(float strength)Server: starts the stunned action. strength is ignored. Called by a StatTrigger on the prefab.
protected override void InitializeAi()Server: picks the passive set and, if set, the stunned action, building each once per asset.
protected override void InitializeStatic()Creates the shared set and stunned action caches, once per class.
protected override void Killed(HealthObject healthobject)Turns off collision and sets the killed animator bool on the local animator.