UxrFirearmWeapon.GetAmmoCapacity Method

Gets the attached magazine maximum capacity.

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

Syntax

C#

public int GetAmmoCapacity(
	int triggerIndex
)

Parameters

 

triggerIndex
Type: System.Int32
Index in _triggers

Return Value

Type: Int32
Maximum capacity of ammo in the attached magazine. If there isn’t any magazine attached it returns 0

See Also

Reference

UxrFirearmWeapon Class
UltimateXR.Mechanics.Weapons Namespace