Skip to content

Custom Game Events

indig0fox edited this page Jul 14, 2021 · 14 revisions

-----------------------------------------------------------------------------

🚧 Warning: This page is under construction and has incomplete information!

-----------------------------------------------------------------------------

OCAP2 supports the addition of calls to integrated functions that will add custom events to the Events feed during playback, alongside kills/connection events.

To record a custom event, we use a CBA server event handler containing a Type along with a Message.

["ocap_handleCustomEvent", ["eventType", "eventMessage"]] call CBA_fnc_serverEvent;

[Result image x 2 as examples]


A special event type can be used in Capture the Flag matches to indicate when someone picks it up or drops it.

["ocap_handleCustomEvent", ["capturedFlag", [name _unit, playerSide _unit, flagSide]] call CBA_fnc_serverEvent;

Needs updated w/ new coloration system in 1.0.0

[Result image x 2 as examples]

Clone this wiki locally