Properties
ai
aiMasks
Accessors
entity
- get entity(): undefined | ENTITY
-
Returns undefined | ENTITY
- set entity(entity: undefined | ENTITY): void
-
Parameters
-
entity: undefined | ENTITY
Returns void
Protected
island
- get island(): undefined | default
-
Returns undefined | default
lastCalculatedAiClientSide
- get lastCalculatedAiClientSide(): AiType
-
Methods
add
- add(aiType: AiType): boolean
-
Returns boolean
addMask
- addMask(mask: AiMaskType): boolean
-
Returns boolean
calculate
- calculate(): AiType
-
getDirectionToHomePoint
- getDirectionToHomePoint(homePoint?: undefined | IVector2): undefined | default
-
Returns undefined | default
has
- has(aiType: AiType): boolean
-
Returns boolean
hasBase
- hasBase(aiType: AiType): boolean
-
Returns boolean
hasMask
- hasMask(mask: AiMaskType, checkActive?: boolean): boolean
-
Parameters
-
-
checkActive: boolean = true
Returns boolean
randomWander
- randomWander(): Readonly<IVector2>
-
Returns Readonly<IVector2>
remove
- remove(aiType: AiType): boolean
-
Returns boolean
removeMask
- removeMask(mask: AiMaskType): boolean
-
Returns boolean
rerollWanderIntentDirection
- rerollWanderIntentDirection(): void
-
Returns void
setBase
- setBase(aiType: AiType): void
-
Returns void
toggle
- toggle(aiType: AiType, active: boolean): boolean
-
Returns boolean
toggleMask
- toggleMask(mask: AiMaskType, present: boolean): boolean
-
Returns boolean
updateWanderIntent
- updateWanderIntent(): void
-
Returns void
Gets the latest synced state of the ai. This should only be used clientside.