# Behind To Event Camera

### Signature

```c
void behindtoeventcamera(int identifier, float time, int unused, int easingType); //id:0x034f
```

### Description

Performs a transition from the battle camera to an event camera over time.

### Arguments

#### Identifier

The identifier of the camera that will be transitioned to.

Usually, it's OR'ed by `0x02000000` before passing it as an argument. However, this is not necessary and probably just a leftover from the dev tools used to automate the process of the camera selection.

This identifier refers to the camera entry in the section 8 file of the ebp file of the location.&#x20;

#### Time

The amount of seconds it takes until the camera transition is complete.

#### Unused

This argument is unused.

#### Easing Type

Controls the amount of easing on the camera transition.

<table><thead><tr><th width="129.33333333333331">Identifier</th><th width="297">Description</th><th>Calculation</th></tr></thead><tbody><tr><td>0</td><td>Fast start and middle, normal end.</td><td><span class="math">f(x) = (sin((x * π) - π / 2) + 1) / 2</span></td></tr><tr><td>1</td><td>Slow start, normal middle and end.</td><td><span class="math">f(x) = sin((x * π) / 2 - π / 2) + 1</span></td></tr><tr><td>2</td><td>Fast start, normal middle, slow end.</td><td><span class="math">f(x) = sin(x * (π / 2))</span></td></tr><tr><td>3</td><td>No easing.</td><td><span class="math">f(x) = x</span></td></tr></tbody></table>

### Notes

{% hint style="warning" %}
**Before calling this function:**

* Prevent the player from modifying the battle camera by calling the[Set No Update Behind Camera](/the-insurgents-handbook/scripts/vm-call-targets/set-no-update-behind-camera.md) or [Set No Update Behind Camera System](/the-insurgents-handbook/scripts/vm-call-targets/set-no-update-behind-camera-system.md) function.

**After calling this function:**

* Enable and switch to the transitioned event camera via the [Camera Start 7D](/the-insurgents-handbook/scripts/vm-call-targets/camera-start-7d.md) function. Otherwise the battle camera will remain active and the transition will have no point as the camera will snap back right behind the player.
  {% endhint %}

{% hint style="info" %}
If a time value higher than 0 is used, the [Behind To Event Camera Sync](/the-insurgents-handbook/scripts/vm-call-targets/behind-to-event-camera-sync.md) function should be called soon after this one to stop the execution of the following functions until the camera transition is completed.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xeavin.gitbook.io/the-insurgents-handbook/scripts/vm-call-targets/behind-to-event-camera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
