UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_mission_triggers.h File Reference

Campaign mission triggers. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CP_ExecuteMissionTrigger (const mission_t *mission, bool won)
 Executes console commands after a mission.

Detailed Description

Campaign mission triggers.

Definition in file cp_mission_triggers.h.

Function Documentation

◆ CP_ExecuteMissionTrigger()

void CP_ExecuteMissionTrigger ( const mission_t * mission,
bool won )

Executes console commands after a mission.

Parameters
[in]missionPointer to the mission to execute the triggers for
[in]wonInt value that is one when you've won the game, and zero when the game was lost Can execute console commands (triggers) on win and lose This can be used for story dependent missions

Definition at line 41 of file cp_mission_triggers.cpp.

References cgi, CP_CampaignTriggerFunctions(), DEBUG_CLIENT, mission_t::mapDef, mapDef_t::onlose, mission_t::onlose, mapDef_t::onwin, mission_t::onwin, and Q_strvalid.

Referenced by CP_MissionEnd().