OnNpcDuck
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnNpcDuck( HumanNPC instance )
{
Puts( "OnNpcDuck works!" );
}
Location
- HumanNPC::SetDucked(bool flag)
csharp
public void SetDucked(bool flag)
{
if (Interface.CallHook("OnNpcDuck", this) != null)
{
return;
}
this.modelState.ducked = flag;
base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
//---