Advanced Tutorial: Missions

Strike

Naming: MISSION_STRIKE_[Name]

Specific Targets

TBD

Scenery Targets

Bridges, buildings or other type of targets that are baked into the map are awesome targets.
We wanted to make sure they were easily integrated in Spearhead.

Spearhead detects scenery targets by the trigger zone name. A zone named scenerytarget_[freeform] or scenerytargets (case-insensitive) will be scanned and any scenery objects that has the attribute "Buildings" inside the zone will be added as mission scenery targets.

Scenery targets are treated like mission targets: they are included in the mission completion calculation (their `IsAlive()` state is checked) and their state is persisted/updated when missions spawn or resume.

Due to Object IDs changing when maps are updated and edited the "Assign as..." functionality does not work for scenery targets. Hence the need to use trigger zones to define them.

Here's two images showing how a bridge is added to a mission.