Skip to content

OnEntityLoaded

Called after a network object is loaded from a save (including trees) No return behavior

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnEntityLoaded( BaseNetworkable instance, LoadInfo info )
{
    Puts( "OnEntityLoaded works!" );
}

Location

  • BaseNetworkable::Load(BaseNetworkable/LoadInfo info)
csharp
//---
{
	if (info.msg.baseNetworkable == null)
	{
		return;
	}
	Interface.CallHook("OnEntityLoaded", this, info);
	ProtoBuf.BaseNetworkable baseNetworkable = info.msg.baseNetworkable;
	if (this.prefabID != baseNetworkable.prefabID)
	{
		string[] expr_40 = new string[6];
		expr_40[0] = "Prefab IDs don't match! ";
//---

Released under the MIT License.