Pizzicato Posted June 30, 2024 Posted June 30, 2024 Is it possible to get Event Data via the Mission Editor? I thought I remembered it being possible to use the ... variable arguments syntax to get the Event Data, but it doesn't seem to work. Am I misremembering or doing it wrong, or was that never a possibility? i7-7700K @ 4.9Ghz | 16Gb DDR4 @ 3200Mhz | MSI Z270 Gaming M7 | MSI GeForce GTX 1080ti Gaming X | Win 10 Home | Thrustmaster Warthog | MFG Crosswind pedals | Oculus Rift S
cfrag Posted June 30, 2024 Posted June 30, 2024 You are probably misremembering. You will use a trigger to run a script that installs an event hander. This happens once. That event handler then is invoked when the event happens. This is handled outside the usual trigger loop and there currently is no trigger condition that accesses the 'current' event. The reason for that is simple: event handlers are invoked when an event happens, they do not actively poll the event queue and look if something happens, there is not 'currently happening Event', there are only distinct events exactly when they happen (e.g: a unit died). An event callback is much more efficient, and probably the way that you want to go yourself as well. 1
Recommended Posts