-
Notifications
You must be signed in to change notification settings - Fork 0
HazardInfo
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.
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).
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).
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.
- Home
- Features
- Classes
- Functions
- Guides