Skip to content

OnBallistaGunReload

Usage

  • Return a bool value to override default behavior

Example Autogenerated

csharp
private bool? OnBallistaGunReload( BallistaGun instance, BasePlayer player )
{
    Puts( "OnBallistaGunReload works!" );
    return null;
}

Location

  • BallistaGun::SERVER_ReloadStart(BaseEntity.RPCMessage msg)
csharp
//---
	BasePlayer mounted = this.GetMounted();
	if (mounted == null || player == null || player != mounted || this.UnableToStartReloadServer(player))
	{
		return;
	}
	if (Interface.CallHook("OnBallistaGunReload", this, player) != null)
	{
		return;
	}
	this.reloadingPlayer = player;
	base.SetFlag(BaseEntity.Flags.Reserved4, true, false, true);
//---

Released under the MIT License.