OnEntitySpawned
Usage
- No return behavior
Example Autogenerated
csharp
private void OnEntitySpawned( BaseNetworkable instance )
{
Puts( "OnEntitySpawned works!" );
}
Location
- BaseNetworkable::Spawn()
csharp
//---
this.ServerInit();
this.PostInitShared();
this.UpdateNetworkGroup();
this.ServerInitPostNetworkGroupAssign();
this.isSpawned = true;
Interface.CallHook("OnEntitySpawned", this);
this.SendNetworkUpdateImmediate(true);
base.Invoke(new Action(this.SendGlobalNetworkUpdate), 0f);
if (Rust.Application.isLoading && !Rust.Application.isLoadingSave)
{
base.gameObject.SendOnSendNetworkUpdate(this as BaseEntity);
//---