Class EntityToggleWeapon
- Namespace
- VoxelPlayground.Entity
- Assembly
- GamePlay.dll
Represents a weapon that toggles its state when the trigger is pressed.
public class EntityToggleWeapon : EntityFirableWeapon
- Inheritance
-
objectEntityToggleWeapon
- Derived
- Inherited Members
- Extension Methods
Methods
FireReloadPercentage()
Gets the percentage of ammo remaining (0.0 to 1.0).
public override float FireReloadPercentage()
Returns
- float
The percentage of ammo remaining.
OnTriggerPressed()
Called when the trigger is pressed. Toggles the active state of the weapon.
public override void OnTriggerPressed()