UxrFirearmWeapon.GetAmmoLeft Method

Gets the ammo left in the attached magazine.

Namespace: UltimateXR.Mechanics.Weapons
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public int GetAmmoLeft(
	int triggerIndex
)

Parameters

 

triggerIndex
Type: System.Int32
Index in _triggers

Return Value

Type: Int32
Ammo left in the attached magazine. If there isn’t any magazine attached it returns 0

See Also

Reference

UxrFirearmWeapon Class
UltimateXR.Mechanics.Weapons Namespace