Skip to content

Entityalive

Redirect if an Entity id resolves to not null and enabled, otherwise, this will not do anything and continue processing.

Syntax

|entityalive,entity,redirect|

Parameters

entity: int

The Entity id to check for not being null and enabled. This must be a valid Entity id or an exception will be thrown.

redirect: int

The Dialogue line id to redirect to if applicable. This must be a valid Dialogue line id or an exception will be thrown when redirecting.

Remarks

The actual check is performed using the activeInHierarchy field of the entity's GameObject. This means that not only the Entity needs to be active to redirect, but all of its parent too.

If a redirection happen, the input string is replaced by an OrganiseLines version of the resolved redirect dialogue line and processing resumes at the start of the input string to accommodate its replacement.