Skip to content

OnHelicopterTarget

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnHelicopterTarget( HelicopterTurret instance, BaseCombatEntity newTarget )
{
    Puts( "OnHelicopterTarget works!" );
}

Location

  • HelicopterTurret::SetTarget(BaseCombatEntity newTarget)
csharp
public void SetTarget(BaseCombatEntity newTarget)
{
	if (Interface.CallHook("OnHelicopterTarget", this, newTarget) != null)
	{
		return;
	}
	this._target = newTarget;
	this.UpdateTargetVisibility();
//---

Released under the MIT License.