OnPlayerHandcuff
Usage
- Return a non-null value or bool to override default behavior
Example Autogenerated
csharp
private void OnPlayerHandcuff( BasePlayer victim, BasePlayer handcuffer )
{
Puts( "OnPlayerHandcuff works!" );
}
Location
- Handcuffs::SV_HandcuffVictim(BasePlayer victim, BasePlayer handcuffer)
csharp
//---
Item ownerItem = base.GetOwnerItem();
if (ownerItem == null)
{
return;
}
if (Interface.CallHook("OnPlayerHandcuff", victim, handcuffer) != null)
{
return;
}
victim.SetPlayerFlag(BasePlayer.PlayerFlags.IsRestrained, true);
victim.SendNetworkUpdateImmediate(false);
//---