Objective

From GTAMods Wiki
Jump to navigation Jump to search

An objective is an action with a goal that a character performs in GTA III and Vice City. Objectives include attacking, following, fleeing, and going to a location. When assigned an objective, the character will perform the action until a new objective is given or until it is removed. Objectives are superseded by tasks in San Andreas. Objectives are identified by a value hardcoded into the game and there are several types of them. Only objectives that can be used through the script are listed here.

GTA III Vice City Target Opcode Notes
1 1 none 0192 wait on foot
2 3 none 0193 flee on foot till safe
3 4 flt[3] 0194 guard spot
3 - flt[4] 0195 guard area
5 - none 0196 wait in car
7 8 char 01C9/01CA kill char/player on foot
8 9 char 01CB/01CC kill char/player any means
9 10 char 01CD/01CE flee char/player on foot till safe
10 11 char 01CF/01D0 flee char/player on foot always
11 12 char 01D1/01D2 goto char/player on foot
12 - char 030B follow char in formation
- 13 char 04C2 walk to char
13 16 car 01D3 leave car
14 17 car 01D4 enter car as passenger
15 18 car 01D5 enter car as driver
- 21 object 01D8 destroy object
19 22 car 01D9 destroy car
20 - flt[4] 029D goto area by any means
21 24 flt[3] 0211 goto coord on foot
21 - flt[4] 01DA goto area on foot
22 25 flt[3] 0239 run to coord
22 - flt[4] 0238 run to area
26 29 char 01DE/01DF follow leader
27 30 int[2] 01E1 follow route
29 32 none 0365 hail taxi
30 - none 032E catch train
32 35 none 0377 steal any car
34 41 car 046B flee car
- 46 char 04C6 aim gun at char
- 49 flt[3] 0502 sprint to coord