![]() |
Corgi Engine v9.3
|
This Action will let the AI agent you put it on climb ladders, up, down, or in any direction More...
Public Types | |
enum | Modes { ClimbUp , ClimbDown , ClimbAny , None } |
![]() | |
enum | InitializationModes { EveryTime , OnlyOnce } |
Public Member Functions | |
override void | Initialization () |
On init we grab all the components we'll need More... | |
override void | PerformAction () |
On PerformAction we try climbing a ladder if possible More... | |
override void | OnExitState () |
When exiting the state we reset our ladder input More... | |
![]() | |
virtual void | OnEnterState () |
Describes what happens when the brain enters the state this action is in. Meant to be overridden. More... | |
Public Attributes | |
Modes | Mode = Modes.ClimbAny |
whether the AI should climb up, down, or any direction on ladders it encounters More... | |
float | CooldownBetweenClimbsDuration = 1f |
a duration, in seconds, during which the agent can't change input duration after having climbed a ladder More... | |
![]() | |
InitializationModes | InitializationMode |
whether initialization should happen only once, or every time the brain is reset More... | |
string | Label |
a label you can set to organize your AI Actions, not used by anything else More... | |
Protected Member Functions | |
virtual void | ClimbLadder () |
This method changes ladder input based on our settings and ladder position More... | |
virtual void | StoreLastFrame () |
We store our ladder and climbing state More... | |
virtual void | OnRevive () |
When reviving we reset our ladder input More... | |
virtual void | ResetLadderInput () |
virtual void | OnEnable () |
On enable we start listening for OnRevive events More... | |
virtual void | OnDisable () |
On disable we stop listening for OnRevive events More... | |
![]() | |
virtual void | Awake () |
On Awake we grab our AIBrain More... | |
Protected Attributes | |
CorgiController | _controller |
Character | _character |
Health | _health |
CharacterHorizontalMovement | _characterHorizontalMovement |
CharacterLadder | _characterLadder |
Vector2 | _ladderInput |
bool | _climbingLastFrame |
Ladder | _ladderLastFrame |
float | _yInputLastFrame |
float | _timeSinceLastClimb |
![]() | |
bool | _initialized |
AIBrain | _brain |
Static Protected Attributes | |
const float | _threshold = 0.5f |
Additional Inherited Members | |
![]() | |
virtual bool | ActionInProgress [getset] |
virtual bool | ShouldInitialize [get] |
This Action will let the AI agent you put it on climb ladders, up, down, or in any direction
|
protectedvirtual |
This method changes ladder input based on our settings and ladder position
|
virtual |
On init we grab all the components we'll need
Reimplemented from MoreMountains.Tools.AIAction.
|
protectedvirtual |
On disable we stop listening for OnRevive events
|
protectedvirtual |
On enable we start listening for OnRevive events
|
virtual |
When exiting the state we reset our ladder input
Reimplemented from MoreMountains.Tools.AIAction.
|
protectedvirtual |
When reviving we reset our ladder input
|
virtual |
On PerformAction we try climbing a ladder if possible
Implements MoreMountains.Tools.AIAction.
|
protectedvirtual |
|
protectedvirtual |
We store our ladder and climbing state
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
float MoreMountains.CorgiEngine.AIActionClimbLadder.CooldownBetweenClimbsDuration = 1f |
a duration, in seconds, during which the agent can't change input duration after having climbed a ladder
Modes MoreMountains.CorgiEngine.AIActionClimbLadder.Mode = Modes.ClimbAny |
whether the AI should climb up, down, or any direction on ladders it encounters