AddSortieEvent
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | AddSortieEvent | |
| Function Description: | Adds a sortie event to the sortie tracking system using a custom event table, enabling post-event processing such as scoring, notifications, and sortie bank scheduling. The function accepts a table with event data and processes it accordingly. | |
| File Location: | cmm.XpFunctions.lua | |
| Syntax: | CMM.AddSortieEvent( table argTable ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| argTable | {EventData <TBL>} – Table containing a single event data entry. EventData must have fields such as initiator, position, time, and other metadata from the game event. | |
| Example: | CMM.AddSortieEvent({id = world.event.S_EVENT_LAND, initiator = unit, place = location}) | |
| Example Description: | Records events and schedules a sortie bank task after a land event, ensuring proper scoring and notification logic is applied. | |
| Related Functions: | ||
| Notes: | ||