OnRackedWeaponSwapped
Usage
- No return behavior
Example Autogenerated
csharp
private void OnRackedWeaponSwapped( Item expr_06, WeaponRackSlot forItemDef, BasePlayer player, WeaponRack instance )
{
Puts( "OnRackedWeaponSwapped works!" );
}
Location
- WeaponRack::SwapPlayerWeapon(BasePlayer player, int gridCellIndex, int takeFromBeltIndex, int rotation)
csharp
//---
item.RemoveFromContainer();
this.GivePlayerWeapon(player, mountSlotIndex, takeFromBeltIndex, false, true);
this.MountWeapon(item, player, bestPlacementCellIndex, rotation, false);
ItemManager.DoRemoves();
base.SendNetworkUpdateImmediate(false);
Interface.CallHook("OnRackedWeaponSwapped", item, weaponAtIndex, player, this);
}