OnCupboardAuthorize
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnCupboardAuthorize( BuildingPrivlidge buildingPrivlidge, BasePlayer player )
{
Puts( "OnCupboardAuthorize works!" );
}
Location
- ItemModDeployable::OnDeployed(BaseEntity ent, BasePlayer player)
csharp
//---
player.GiveAchievement(this.UnlockAchievement, false);
}
BuildingPrivlidge buildingPrivlidge = ent as BuildingPrivlidge;
if (buildingPrivlidge != null)
{
if (Interface.CallHook("OnCupboardAuthorize", buildingPrivlidge, player) != null)
{
return;
}
buildingPrivlidge.AddPlayer(player, player.userID);
}
//---