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 |
[edit]
Group creation functions
| CreateBuildingGroup |
| CreateFightGroup |
| CreateMiningGroup |
| CreatePinwheel |
[edit]
Trigger creation functions
[edit]
Victory/Failure condition triggers
These are among the most important. They control when a player has reach a victory or a failure.
| CreateVictoryCondition |
| CreateFailureCondition |
[edit]
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
[edit]
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 |
[edit]
Other functions
| scr_snprintf | Use this function the same way you'd use sprintf. Please refer to your c++ documentation for more help |
Categories: Coding | SDK
