Skip to main content
Version: 5.2.0

Ammo

Consume Ammo​

Consume Ammo reduces AmmoCount by AmmoConsumptionPerShot but only if bInfiniteAmmoEnabled is set to false.

note

This function does not prevent the AmmoCount to become a negative value.

Consume Ammo

Get Ammo Count​

Get Ammo Count gets current ammo count.

Get Ammo Count

Set Ammo Count​

Set Ammo Count sets a new ammo count.

  • New Ammo Count 1 : New amount of ammo.

Set Ammo Count

note

This function should only be called with authority.

Get Ammo Sequence​

Get Ammo Sequence gets ammo sequence set in the projectile launcher.

Get Ammo Sequence

Set Ammo Sequence​

Set Ammo Sequence sets a new ammo sequence and resets the AmmoSequenceIndex.

Calls the OnAmmoSequenceUpdated event dispatcher when a new ammo sequence was set.

  • Ammo Sequence 1 : The new ammo sequence.

Set Ammo Sequence

note

This function should only be called with authority.

Is Infinite Ammo Enabled​

Is Infinite Ammo Enabled checks is infinite ammo enabled.

Is Infinite Ammo Enabled

Set Infinite Ammo Enabled​

Set Infinite Ammo Enabled sets is infinite ammo should be enabled. If infinite ammo is enabled it will make the Projectile Launcher completely skip ammo consumption logic. See: CanFire(), ConsumeAmmo().

  • Enabled 1 : If true, ammo will be infinite.

Set Infinite Ammo Enabled

note

This function should only be called with authority.