An Action that shoots using the currently equipped weapon. If your weapon is in auto mode, will shoot until you exit the state, and will only shoot once in SemiAuto mode. You can optionnally have the character face (left/right) the target, and aim at it (if the weapon has a WeaponAim component).
More...
An Action that shoots using the currently equipped weapon. If your weapon is in auto mode, will shoot until you exit the state, and will only shoot once in SemiAuto mode. You can optionnally have the character face (left/right) the target, and aim at it (if the weapon has a WeaponAim component).
◆ Initialization()
override void MoreMountains.CorgiEngine.AIActionShoot.Initialization |
( |
| ) |
|
|
virtual |
◆ OnEnterState()
override void MoreMountains.CorgiEngine.AIActionShoot.OnEnterState |
( |
| ) |
|
|
virtual |
◆ OnExitState()
override void MoreMountains.CorgiEngine.AIActionShoot.OnExitState |
( |
| ) |
|
|
virtual |
◆ PerformAction()
override void MoreMountains.CorgiEngine.AIActionShoot.PerformAction |
( |
| ) |
|
|
virtual |
◆ Shoot()
virtual void MoreMountains.CorgiEngine.AIActionShoot.Shoot |
( |
| ) |
|
|
protectedvirtual |
◆ TestAimAtTarget()
virtual void MoreMountains.CorgiEngine.AIActionShoot.TestAimAtTarget |
( |
| ) |
|
|
protectedvirtual |
Aims at the target if required
◆ TestFaceTarget()
virtual void MoreMountains.CorgiEngine.AIActionShoot.TestFaceTarget |
( |
| ) |
|
|
protectedvirtual |
Faces the target if required
◆ Update()
virtual void MoreMountains.CorgiEngine.AIActionShoot.Update |
( |
| ) |
|
|
protectedvirtual |
Sets the current aim if needed
◆ _character
Character MoreMountains.CorgiEngine.AIActionShoot._character |
|
protected |
◆ _numberOfShoots
int MoreMountains.CorgiEngine.AIActionShoot._numberOfShoots = 0 |
|
protected |
◆ _projectileWeapon
◆ _shooting
bool MoreMountains.CorgiEngine.AIActionShoot._shooting = false |
|
protected |
◆ _weaponAim
WeaponAim MoreMountains.CorgiEngine.AIActionShoot._weaponAim |
|
protected |
◆ _weaponAimDirection
Vector3 MoreMountains.CorgiEngine.AIActionShoot._weaponAimDirection |
|
protected |
◆ AimAtTarget
bool MoreMountains.CorgiEngine.AIActionShoot.AimAtTarget = false |
if true the Character will aim at the target when shooting
◆ FaceTarget
bool MoreMountains.CorgiEngine.AIActionShoot.FaceTarget = true |
if true, the Character will face the target (left/right) when shooting
◆ TargetHandleWeapon
◆ TargetOffset
Vector3 MoreMountains.CorgiEngine.AIActionShoot.TargetOffset = Vector3.zero |
a constant offset to apply to the target's position when aiming : 0,1,0 would aim more towards the head, for example
The documentation for this class was generated from the following file: