Skip to content

OnSurveyGather

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnSurveyGather( SurveyCharge instance, ItemManager itemManager )
{
    Puts( "OnSurveyGather works!" );
}

Location

  • SurveyCharge::Explode()
csharp
//---
				flag2 = true;
			}
			for (int i = 0; i < num2; i++)
			{
				Item item = ItemManager.Create(resource.type, iAmount, 0uL);
				Interface.CallHook("OnSurveyGather", this, item);
				Vector3 modifiedAimConeDirection = AimConeUtil.GetModifiedAimConeDirection(20f, Vector3.up);
				item.Drop(base.transform.position + Vector3.up * 1f, GetInheritedDropVelocity() + modifiedAimConeDirection * UnityEngine.Random.Range(5f, 10f), UnityEngine.Random.rotation).SetAngularVelocity(UnityEngine.Random.rotation.eulerAngles * 5f);
			}
		}
	}
//---

Released under the MIT License.