OCAP icon indicating copy to clipboard operation
OCAP copied to clipboard

Ability to define custom events

Open fank opened this issue 4 years ago • 3 comments

As currently defined here it is possible to send custom events: https://github.com/OCAP2/addon/blob/103b38d2bce8084e09775e9a477bcaeaaca120fe/addons/%40ocap/addons/ocap/functions/fn_addEventMission.sqf#L33-L41

But these are not shown on the web, because they needed to be registered for that.

We may need some kind of option to easily define them on our own, or/and add some predefined events.

fank avatar Jul 11 '21 17:07 fank

Add documentation in this repo of how to use, which events do exists and how to call them

fank avatar Jul 14 '21 12:07 fank

[objectiveName, objectiveNumber (if in sequence), name player]

  • Terminal activated (counting down for upload)
  • Terminal paused/stopped (upload interrupted)
  • Terminal successfully hacked (obj complete)
  • Objective destroyed (cache, plane, truck, etc)
  • Sector captured (if no persistent/take and hold)
  • Sector controlled by side (if accruing points by holding)
  • Sector gone neutral (sector is neutral awaiting recapture)
  • Game phases
    • Planning phase started (if in-game)
    • Pre-start ended, game started

indig0fox avatar Jul 14 '21 12:07 indig0fox

added general custom event handler for next ver (including web) that will simply add text to the timeline announcing something has occurred.

indig0fox avatar Apr 11 '22 16:04 indig0fox