Corgi Engine
v9.0
|
This action is used to force your character to switch to another weapon. Just drag a weapon prefab into its NewWeapon slot and you're good to go. More...
Public Member Functions | |
override void | Initialization () |
On init we grab our CharacterHandleWeapon ability More... | |
override void | PerformAction () |
On PerformAction we change weapon More... | |
override void | OnEnterState () |
Resets our counter More... | |
Public Member Functions inherited from MoreMountains.Tools.AIAction | |
virtual void | OnExitState () |
Describes what happens when the brain exits the state this action is in. Meant to be overridden. More... | |
Public Attributes | |
Weapon | NewWeapon |
the new weapon to equip More... | |
Public Attributes inherited from MoreMountains.Tools.AIAction | |
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 | ChangeWeapon () |
Performs the weapon change More... | |
Protected Member Functions inherited from MoreMountains.Tools.AIAction | |
virtual void | Awake () |
On Awake we grab our AIBrain More... | |
Protected Attributes | |
CharacterHandleWeapon | _characterHandleWeapon |
int | _change = 0 |
Protected Attributes inherited from MoreMountains.Tools.AIAction | |
bool | _initialized |
AIBrain | _brain |
Additional Inherited Members | |
Public Types inherited from MoreMountains.Tools.AIAction | |
enum | InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce } |
Properties inherited from MoreMountains.Tools.AIAction | |
virtual bool | ActionInProgress [get, set] |
virtual bool | ShouldInitialize [get] |
This action is used to force your character to switch to another weapon. Just drag a weapon prefab into its NewWeapon slot and you're good to go.
|
protectedvirtual |
Performs the weapon change
|
virtual |
On init we grab our CharacterHandleWeapon ability
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
Resets our counter
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
On PerformAction we change weapon
Implements MoreMountains.Tools.AIAction.
|
protected |
|
protected |
Weapon MoreMountains.CorgiEngine.AIActionChangeWeapon.NewWeapon |
the new weapon to equip