01C8
{{{games}}}
- Description
- Creates a character in the passenger seat of a vehicle
- Syntax
- {{{syntax1}}}
- Parameter
- Native analog
- CREATE_CHAR_AS_PASSENGER
This creates a character in the passenger seat of a vehicle. Using this opcode requires an existing vehicle and 0247 to load the model or else the game could crash. If you create a character in a non-existent seat, the character will still be created inside the vehicle but it will be invisible. Note that the fifth parameter is placed in the beginning instead of at the end.
Sanny Builder example:
01C8: 1@ = create_actor_pedtype 5 model #BFORI in_car 0@ passenger_seat 0
Flags
The flag is the position of the seat that the character will be created in.
0 Front right seat
1 Rear left seat
2 Rear right seat
Note
The above format is more commonly used. The actual format of this opcode is in order:
01C8=5,%1d% %2d% %3o% %4d% %5d%
The format to use depends on which INI file you use.
Keywords
create, actor, character, pedtype, model, vehicle, car, passenger