Skip to content

ICanPickupEntity

WARNING

This is an internal hook and will not be called in plugins. See Internal Hooks for more information.

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • DoorCloser::RPC_Take(BaseEntity/RPCMessage rpc)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.MaxDistance(3f)]
public void RPC_Take(BaseEntity.RPCMessage rpc)
{
	if (Interface.CallHook("ICanPickupEntity", rpc.player, this) != null)
	{
		return;
	}
	if (!rpc.player.CanInteract())
	{
//---

Released under the MIT License.