Skip to content

OnPayForPlacement

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPayForPlacement( BasePlayer player, Planner instance, Construction component )
{
    Puts( "OnPayForPlacement works!" );
}

Location

  • Planner::PayForPlacement(BasePlayer player, Construction component)
csharp
public void PayForPlacement(BasePlayer player, Construction component)
{
	if (Interface.CallHook("OnPayForPlacement", player, this, component) != null)
	{
		return;
	}
	if (player.IsInCreativeMode && ConVar.Creative.freeBuild)
	{
//---

Released under the MIT License.