Skip to content

CanDesignFirework

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanDesignFirework( BasePlayer player, PatternFirework instance )
{
    Puts( "CanDesignFirework works!" );
}

Location

  • PatternFirework::PlayerCanModify(BasePlayer player)
csharp
//---
{
	if (player == null || !player.CanInteract())
	{
		return false;
	}
	object returnvar = Interface.CallHook("CanDesignFirework", player, this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	BuildingPrivlidge buildingPrivilege = this.GetBuildingPrivilege();
//---

Released under the MIT License.