Creating an Event - Lokitot/FNF-SoulEngine GitHub Wiki
On a Downloaded Build
The easiest way to do this is by editing my Example Event script, extract the files inside mods/custom_events/
On the Source Code
Adding it to Chart Editor
- Open ChartingState.hx and around Line 50 you will see the
eventStuff
array.
- Add your new Event's name and description to it.
Coding your event
-
Open PlayState.hx
-
Search for the function named triggerEventNote, add a new case using your event's name and code your event's action there.
Early Trigger
Some events like "Kill Henchmen" are triggered earlier than their chart position (280ms earlier). If you want to do something similar, search for the function eventNoteEarlyTrigger and set a new case with your event's name and how many milliseconds earlier should it be triggered.