Skip to content

CanDeployItem ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

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

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)
	{
		return;
	}
	if (deployable.toSlot)
	{
//---

Released under the MIT License.