Skip to content

OnResourceDepositCreated

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnResourceDepositCreated( ResourceDeposit arg_360_0 )
{
    Puts( "OnResourceDepositCreated works!" );
}

Location

  • ResourceDepositManager::CreateFromPosition(UnityEngine.Vector3 pos)
csharp
//---
				resourceDeposit.Add(ItemManager.FindItemDefinition("hq.metal.ore"), 1f, UnityEngine.Random.Range(5000, 10000), UnityEngine.Random.Range(30f, 50f), ResourceDepositManager.ResourceDeposit.surveySpawnType.ITEM, false);
			}
		}
	}
	this._deposits.Add(indexFrom, resourceDeposit);
	Interface.CallHook("OnResourceDepositCreated", resourceDeposit);
	UnityEngine.Random.state = arg_360_0;
	return resourceDeposit;
}

Released under the MIT License.