CanAffordToPlace
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanAffordToPlace( BasePlayer ownerPlayer, Planner instance, Construction component )
{
Puts( "CanAffordToPlace works!" );
}
Location
- Planner::CanAffordToPlace(Construction component)
csharp
//---
BasePlayer ownerPlayer = base.GetOwnerPlayer();
if (!ownerPlayer)
{
return false;
}
object returnvar = Interface.CallHook("CanAffordToPlace", ownerPlayer, this, component);
if (returnvar is bool)
{
return (bool)returnvar;
}
if (ownerPlayer.IsInCreativeMode && ConVar.Creative.freeBuild)
//---