Fix formatting for BIS evh warning (#7522)

This commit is contained in:
Whigital 2020-02-12 20:26:01 +01:00 committed by GitHub
parent ab03def564
commit ce329de784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,14 +606,12 @@ Event handlers in ACE3 are implemented through the CBA event system (ACE3's own
More information on the [CBA Events System](https://github.com/CBATeam/CBA_A3/wiki/Custom-Events-System){:target="_blank"} and [CBA Player Events](https://github.com/CBATeam/CBA_A3/wiki/Player-Events){:target="_blank"} pages. More information on the [CBA Events System](https://github.com/CBATeam/CBA_A3/wiki/Custom-Events-System){:target="_blank"} and [CBA Player Events](https://github.com/CBATeam/CBA_A3/wiki/Player-Events){:target="_blank"} pages.
<div class="panel info"> **Warning about BIS event handlers:**
<h5>Warning about BIS event handlers:</h5> BIS's event handlers (`addEventHandler`, `addMissionEventHandler`) are slow when passing a large code variable. Use a short code block that calls the function you want.
<p>BIS's event handlers (`addEventHandler`, `addMissionEventHandler`) are slow when passing a large code variable. Use a short code block that calls the function you want.</p> ```js
```js player addEventHandler ["Fired", FUNC(handleFired)]; // bad
player addEventHandler ["Fired", FUNC(handleFired)]; // bad player addEventHandler ["Fired", {call FUNC(handleFired)}]; // good
player addEventHandler ["Fired", {call FUNC(handleFired)}]; // good ```
```
</div>
### 7.4 Hashes ### 7.4 Hashes