# PointCapture

Allows the Player to Capture a Point and perform custom events.

{% hint style="info" %}
You can find a PointCapture Prefab uner Cowsins/Prefabs/DragAndDropExtras
{% endhint %}

* <mark style="color:purple;">captureSpeed:</mark> how fast the point will be captured
* <mark style="color:purple;">loseProgressIfNotCapturing:</mark> If true, progress will gradually be lost when player leaves the point
* <mark style="color:purple;">losingProgressCaptureSpeed:</mark> Speed of progress loss
* <mark style="color:purple;">events</mark>

### Functions & Accesors | PointCapture.cs

> <mark style="color:green;">OnCapture( )</mark>
>
> This is called whenever you capture the point
>
> Since it is a public virtual void, you can override this method on a new script that inherits from PointCapture. However, do not forget to use `base.OnCapture();` if you still want to perform the base actions on that new script, which is recommended.
