A simple component you can use to control a weapon and have it start and stop on demand, without having a character to handle it You can see it in action in the KoalaHealth demo scene, it's powering that demo's cannons
More...
A simple component you can use to control a weapon and have it start and stop on demand, without having a character to handle it You can see it in action in the KoalaHealth demo scene, it's powering that demo's cannons
◆ Start()
virtual void MoreMountains.CorgiEngine.WeaponHandler.Start |
( |
| ) |
|
|
protectedvirtual |
On Start, starts shooting if needed
◆ StartShooting()
virtual void MoreMountains.CorgiEngine.WeaponHandler.StartShooting |
( |
| ) |
|
|
virtual |
Makes the associated weapon start shooting
◆ StartShootingOnStartCo()
virtual IEnumerator MoreMountains.CorgiEngine.WeaponHandler.StartShootingOnStartCo |
( |
| ) |
|
|
protectedvirtual |
◆ StopShooting()
virtual void MoreMountains.CorgiEngine.WeaponHandler.StopShooting |
( |
| ) |
|
|
virtual |
Makes the associated weapon stop shooting
◆ InitialDelayOnStart
float MoreMountains.CorgiEngine.WeaponHandler.InitialDelayOnStart = 1f |
the delay, in seconds, to wait before shooting on start
◆ StartShootingButton
bool MoreMountains.CorgiEngine.WeaponHandler.StartShootingButton |
◆ StartShootingOnStart
bool MoreMountains.CorgiEngine.WeaponHandler.StartShootingOnStart = false |
if this is true, the WeaponHandler will begin shooting automatically on start
◆ StopShootingButton
bool MoreMountains.CorgiEngine.WeaponHandler.StopShootingButton |
◆ TargetWeapon
Weapon MoreMountains.CorgiEngine.WeaponHandler.TargetWeapon |
the weapon you want this component to pilot
The documentation for this class was generated from the following file: