- Author
- Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)
This script should be attached to any object which offensive AI scripts should treat as a mission objective, for example a building. Compatible scripts include dp88_AI_Tank_Offensive. Note that the objective is used as a go-to location rather than a target to shoot at, so the behaviour of the unit when it arrives at an objective depends upon the script being used and its configuration.
- Parameters
-
| Team | Which team this objective applies to. 0 for Nod/Soviets, 1 for GDI/Allies and 2 for both |
| Type | What type of objective this is, valid values are 1 (Offensive), 2 (Defensive) or 3 (Engineering) |
| Range | The target distance from this objective the unit will try to achieve. Be careful not to set this too low or the AI might be unable to calculate a successful route. Upon arrival units will roam within this area until the objective is accomplished or a new objective takes priority |
| Priority_Soldier | Objective priority for soldiers, or 0 is this objective is not suitable for soldiers |
| Priority_Light_Vehicle | Objective priority for light vehicles, or 0 is this objective is not suitable for light vehicles |
| Priority_Heavy_Vehicle | Objective priority for heavy vehicles, or 0 is this objective is not suitable for heavy vehicles |
| Priority_Aircraft | Objective priority for aircraft, or 0 is this objective is not suitable for aircraft |