Skip to content

OnCargoShipSpawnCrate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnCargoShipSpawnCrate( CargoShip instance )
{
    Puts( "OnCargoShipSpawnCrate works!" );
}

Location

  • CargoShip::RespawnLoot()
csharp
public void RespawnLoot()
{
	if (Interface.CallHook("OnCargoShipSpawnCrate", this) != null)
	{
		return;
	}
	base.InvokeRepeating(new Action(this.PlayHorn), 0f, 8f);
	this.SpawnCrate(this.lockedCratePrefab.resourcePath);
//---

Released under the MIT License.