Skip to content

OnAirdrop

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnAirdrop( CargoPlane instance, Vector3 newDropPosition )
{
    Puts( "OnAirdrop works!" );
}

Location

  • CargoPlane::UpdateDropPosition(UnityEngine.Vector3 newDropPosition)
csharp
//---
	this.secondsToTake = Vector3.Distance(this.startPos, this.endPos) / 50f;
	this.secondsToTake *= UnityEngine.Random.Range(0.95f, 1.05f);
	base.transform.position = this.startPos;
	base.transform.rotation = Quaternion.LookRotation(this.endPos - this.startPos);
	this.dropPosition = newDropPosition;
	Interface.CallHook("OnAirdrop", this, newDropPosition);
}

Released under the MIT License.