Skip to content

CanUseGesture

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • GestureConfig::IsOwnedBy(BasePlayer player, bool allowCinematic)
csharp
public bool IsOwnedBy(BasePlayer player, bool allowCinematic = false)
{
	object returnvar = Interface.CallHook("CanUseGesture", player, this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (this.forceUnlock)
//---

Released under the MIT License.