Skip to content

OnNpcDuck ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private object OnNpcDuck( HumanNPC instance )
{
    Puts( "OnNpcDuck works!" );
    return null;
}

Location ​

  • HumanNPC::SetDucked(bool flag)
csharp
public void SetDucked(bool flag)
{
	if (Interface.CallHook("OnNpcDuck", this) == null)
	{
		modelState.ducked = flag;
		SendNetworkUpdate();
	}
}

Released under the MIT License.