Skip to content

HazardInfo

inkoalawetrust edited this page Nov 12, 2023 · 5 revisions

Description

This is the data container which contains the information for a singular hazard. KAI NPCs can store any arbitrary number of these when given to them. This data does nothing on its' own, it's up to the NPCs themselves to decide what to do with this information, like if they should run away from the biggest threat on the list.

Variables

Position

The Vector3 position that is the origin of the hazard. If this is meant to be empty, don't forget to pass its' value as (Double.NaN, Double.NaN, Double.NaN).

Origin

The actor that is the origin of the hazard, if any. Like in the case of direct actor hazards (Necessary) or attack hazards (Where origin is the will-be attacker).

Range

The range of the hazard. By default, NPCs will remove the entry from their Hazards array if the Origin or Position are further than this distance. TODO: Document the other member fields.

See also

Clone this wiki locally