Skip to content

OnActiveItemChanged

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnActiveItemChanged( BasePlayer instance, Item activeItem, Item heldEntity )
{
    Puts( "OnActiveItemChanged works!" );
}

Location

  • BasePlayer::UpdateActiveItem(ItemId itemID)
csharp
//---
			heldEntity2.SetHeld(true);
		}
		this.NotifyGesturesNewItemEquipped();
	}
	this.inventory.UpdatedVisibleHolsteredItems();
	Interface.CallHook("OnActiveItemChanged", this, activeItem, activeItem2);
}

Released under the MIT License.