Difference between revisions of "01C8"
Line 1: | Line 1: | ||
− | + | {{OpCode | |
− | + | | ini = 01C8=5,%5d% %2d% %3o% %1d% %4d% | |
− | + | | description = Creates a character in the passenger seat of a vehicle | |
− | + | | p1 = Existing vehicle handle | |
− | + | | p2 = [[Ped type]] | |
− | + | | p3 = Valid ped [[DFF]] model name or ID number as defined in the [[IDE#PEDS|IDE]] file | |
− | + | | p4 = Flag | |
− | + | | p5 = Actor handle | |
− | + | | game = GTA3, Vice City, San Andreas | |
− | This creates | + | | native = [[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:<source lang="scm">01C8: 1@ = create_actor_pedtype 5 model #BFORI in_car 0@ passenger_seat 0</source> | ||
==Flags== | ==Flags== | ||
− | The flag is the position of the seat that the | + | The flag is the position of the seat that the character will be created in.<br> |
0 Front right seat<br> | 0 Front right seat<br> | ||
1 Rear left seat<br> | 1 Rear left seat<br> | ||
Line 17: | Line 20: | ||
==Note== | ==Note== | ||
− | + | The above format is more commonly used. The actual format of this opcode is in order:<br> | |
− | <code>01C8=5,% | + | <code>01C8=5,%1d% %2d% %3o% %4d% %5d%</code><br> |
− | The | + | The format to use depends on which INI file you use.<br> |
− | |||
− | |||
==Keywords== | ==Keywords== | ||
− | create, actor, pedtype, model, vehicle | + | create, actor, character, pedtype, model, vehicle, car, passenger |
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 23:48, 27 December 2008
{{{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