OnRackedWeaponMount
Usage
- Return a non-null value or bool to override default behavior
Example Autogenerated
csharp
private void OnRackedWeaponMount( Item item, BasePlayer player, WeaponRack instance )
{
Puts( "OnRackedWeaponMount works!" );
}
Location
- WeaponRack::MountWeapon(Item item, BasePlayer player, int gridCellIndex, int rotation, bool sendUpdate)
csharp
//---
}
if (player == null)
{
return false;
}
object returnvar = Interface.CallHook("OnRackedWeaponMount", item, player, this);
if (returnvar != null)
{
return returnvar is bool && (bool)returnvar;
}
int itemid = item.info.itemid;
//---