CanUpdateSign
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanUpdateSign( BasePlayer player, CarvablePumpkin instance )
{
Puts( "CanUpdateSign works!" );
}
csharp
private void CanUpdateSign( BasePlayer player, PhotoFrame instance )
{
Puts( "CanUpdateSign works!" );
}
csharp
private void CanUpdateSign( BasePlayer player, Signage instance )
{
Puts( "CanUpdateSign works!" );
}
Location
- CarvablePumpkin::CanUpdateSign(BasePlayer player)
- PhotoFrame::CanUpdateSign(BasePlayer player)
- Signage::CanUpdateSign(BasePlayer player)
csharp
public virtual bool CanUpdateSign(BasePlayer player)
{
object returnvar = Interface.CallHook("CanUpdateSign", player, this);
if (returnvar is bool)
{
return (bool)returnvar;
}
return player.IsAdmin || player.IsDeveloper || (player.CanBuild() && (!base.IsLocked() || player.userID == base.OwnerID));
//---
csharp
public bool CanUpdateSign(BasePlayer player)
{
object returnvar = Interface.CallHook("CanUpdateSign", player, this);
if (returnvar is bool)
{
return (bool)returnvar;
}
return player.IsAdmin || player.IsDeveloper || (player.CanBuild() && (!base.IsLocked() || player.userID == base.OwnerID));
//---
csharp
public virtual bool CanUpdateSign(BasePlayer player)
{
object returnvar = Interface.CallHook("CanUpdateSign", player, this);
if (returnvar is bool)
{
return (bool)returnvar;
}
if (player.IsAdmin || player.IsDeveloper)
//---