Base Scenario Event
public abstract class BaseScenarioEvent : IScenarioElement
Base class for a condition which can trigger a scenario. Add your own by deriving from it - new subclasses automatically appear in the Scenario Editor’s Events dropdown.
Built-in event types:
Event |
Description |
|---|---|
MatchStartedEvent |
Fires once, when the match starts. No parameters. |
UnitSelectedEvent |
Fires when a unit owned by a specific player ( |
UnitDiedEvent |
Fires when a unit matching a configured |
TriggerZoneEvent |
Fires when a unit enters or exits a Trigger Zone ( |
Hooking up a custom event subclass to a real game event still requires a small code change of your own - see ScenariosSystem.MakeBuiltInSubscriptions for how the built-in ones are wired up.