Functions.h

From OPU Wiki

This header contains important functions that do not have a owning class. You do not need to supply a class name::

Table of contents

Group creation functions

CreateBuildingGroup
CreateFightGroup
CreateMiningGroup
CreatePinwheel


Trigger creation functions

Victory/Failure condition triggers

These are among the most important. They control when a player has reach a victory or a failure.

CreateVictoryCondition
CreateFailureCondition


Other triggers

Use these triggers to control game-flow and AI actions.

CreateBuildingCountTrigger
CreateVehicleCountTrigger
CreateCountTrigger
CreateAttackedTrigger
CreateDamagedTrigger
CreateEscapeTrigger
CreateEvacTrigger
CreateKitTrigger
CreateMidasTrigger
CreateOnePlayerLeftTrigger
CreateOperationalTrigger
CreatePointTrigger
CreateRectTrigger
CreateResearchTrigger
CreateResourceTrigger
CreateTimeTrigger
CreateTimeTrigger
CreateSetTrigger

For more information about triggers, and how to use them, please read AI_Coding

SpecialTarget functions

The mission can have special targets. They will appear green to the player. Examples are labs that need to be visited by a scout.

CreateSpecialTarget
GetSpecialTargetData


Other functions

scr_snprintf Use this function the same way you'd use sprintf. Please refer to your c++ documentation for more help
Personal tools