Skip to content

OnMlrsTarget

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnMlrsTarget( MLRS instance, Vector3 worldPos, BasePlayer _mounted )
{
    Puts( "OnMlrsTarget works!" );
}

Location

  • MLRS::SetUserTargetHitPos(UnityEngine.Vector3 worldPos)
csharp
//---
		Vector3 vector = position + TerrainMeta.Size;
		worldPos.x = Mathf.Clamp(worldPos.x, position.x, vector.x);
		worldPos.z = Mathf.Clamp(worldPos.z, position.z, vector.z);
		worldPos.y = this.GetSurfaceHeight(worldPos);
	}
	if (Interface.CallHook("OnMlrsTarget", this, worldPos, this._mounted) != null)
	{
		return;
	}
	this.UserTargetHitPos = worldPos;
	if (base.isServer)
//---

Released under the MIT License.