Skip to content

OnTreeMarkerHit

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnTreeMarkerHit( TreeEntity instance, HitInfo info )
{
    Puts( "OnTreeMarkerHit works!" );
}

Location

  • TreeEntity::DidHitMarker(HitInfo info)
csharp
//---
{
	if (this.xMarker == null)
	{
		return false;
	}
	object returnvar = Interface.CallHook("OnTreeMarkerHit", this, info);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (PrefabAttribute.server.Find<TreeMarkerData>(this.prefabID) != null)
//---

Released under the MIT License.