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