Priority
| Omni-Bot_Map_Scripting | Goal Priorities |
Changing Priorities
Within the map there are times when you need the bot to focus on a certain goals more then others & in some cases less.
Note: you only need to increase the Priority of a goal by 0.1 more then the original goal for it to be used as the higher goal. A common mistake is to increase the priority to a huge number, this can cause problems with other goals.
SetGoalPriority
syntax: SetGoalPriority( goalname, priority, team, class, <optional persistent> );
example: SetGoalPriority( "FLAG_Gold", 1.0, 0, 0 ); //all teams and all classes
example: SetGoalPriority( "CHECKPOINT_City", 0.8, TEAM.AXIS); //axis only all classes
example: SetGoalPriority( "DEFUSE_somedyno.*", 0.0, TEAM.AXIS, CLASS.ENGINEER, true ); //the persistent parameter is used for dynamic goals that may not have been created yet
Default Priorities / CampTimes
| MapGoal | Priority | Min Camp | Max Camp |
|---|---|---|---|
| AIRSTRIKE | 0.80 | N/A | N/A |
| ARTILLERY_D | 0.80 | N/A | N/A |
| ARTILLERY_S | 0.80 | N/A | N/A |
| ATTACK | 0.50 | 10 | 20 |
| BUILD | 0.90 | N/A | N/A |
| CALLARTILLERY | 0.80 | 2 | 2 |
| CAMP | 0.50 | 10 | 20 |
| CAPPOINT | 1.10 | N/A | N/A |
| CHECKPOINT | 0.70 | N/A | N/A |
| DEFEND | 0.50 | 10 | 20 |
| DEFUSE | 1.00 | N/A | N/A |
| ESCORT | 0.79 | N/A | N/A |
| FLAG | 0.80 | N/A | N/A |
| GRENADE | 0.80 | N/A | N/A |
| MOBILEMG42 | 1.00 | 2 | 6 |
| MOBILEMORTAR | 1.00 | N/A | N/A |
| MOUNT | 0.79 | N/A | N/A |
| MOUNTMG42 | 0.70 | 15 | 30 |
| PLANT | 0.81 | N/A | N/A |
| PLANTMINE | 0.79 | N/A | N/A |
| REPAIRMG42 | 0.81 | N/A | N/A |
| RIDE | 0.79 | N/A | N/A |
| SMOKEBOMB | 0.80 | N/A | N/A |
| SNIPE | 0.70 | 10 | 20 |
| SWITCH | 0.70 | N/A | N/A |
| TRIPMINE | 0.81 | N/A | N/A |