Skip to content

CanDeployItem

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object CanDeployItem( BasePlayer player, Deployer instance, NetworkableId networkableId )
{
    Puts( "CanDeployItem works!" );
    return null;
}

Location

  • Deployer::DoDeploy(BaseEntity.RPCMessage msg)
csharp
//---
	{
		return;
	}
	Ray ray = msg.read.Ray();
	NetworkableId networkableId = msg.read.EntityID();
	if (Interface.CallHook("CanDeployItem", msg.player, this, networkableId) == null)
	{
		if (deployable.toSlot)
		{
			DoDeploy_Slot(deployable, ray, networkableId);
		}
//---

Released under the MIT License.