diff --git a/docs/wiki/development/coding-guidelines.md b/docs/wiki/development/coding-guidelines.md index c80137dab3..9bc536be20 100644 --- a/docs/wiki/development/coding-guidelines.md +++ b/docs/wiki/development/coding-guidelines.md @@ -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. -
-
Warning about BIS event handlers:
-

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.

- ```js - player addEventHandler ["Fired", FUNC(handleFired)]; // bad - player addEventHandler ["Fired", {call FUNC(handleFired)}]; // good - ``` -
+**Warning about BIS event handlers:** +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. +```js +player addEventHandler ["Fired", FUNC(handleFired)]; // bad +player addEventHandler ["Fired", {call FUNC(handleFired)}]; // good +``` ### 7.4 Hashes