Skip to content

OnSendModelState

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnSendModelState(  )
{
    Puts( "OnSendModelState works!" );
}

Location

  • BasePlayer::SendModelState(bool force)
csharp
//---
	this.modelState.sleeping = this.IsSleeping();
	this.modelState.mounted = this.isMounted;
	this.modelState.relaxed = this.IsRelaxed();
	this.modelState.onPhone = (this.HasActiveTelephone && !this.activeTelephone.IsMobile);
	this.modelState.crawling = this.IsCrawling();
	if (base.limitNetworking || Interface.CallHook("OnSendModelState", this) != null)
	{
		return;
	}
	this.modelState.loading = this.IsLoadingAfterTransfer();
	base.ClientRPC<ModelState>(RpcTarget.NetworkGroup("OnModelState"), this.modelState);
//---

Released under the MIT License.