GiveMaxAmmo

From The KillerJim Mod Wiki

PlayerProxy::GiveMaxAmmo

GiveMaxAmmo.png

Client Only Function - This API call can only be called on clients.

Description

This helper function can be called on clients to give a selected weapon maximum ammo. If the player does not have the required weapon the operation does not do anything.

The Replenish Clip options allows the max ammo to be applied just to the "pocket" of ammo (if false), or if enabled the clip is also reset to it's maximum value (as per the gun's settings).

Arguments
1 string GunName
The name of the gun (case sensitive)
2 boolean ReplenishClip
If true the clip is also replenished.

Playing

Developers

Developer Reference