Difference between revisions of "01C8"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 3: Line 3:
 
'''Parameter 1''': Existing vehicle handle<br>
 
'''Parameter 1''': Existing vehicle handle<br>
 
'''Parameter 2''': [[Ped type]]<br>
 
'''Parameter 2''': [[Ped type]]<br>
'''Parameter 3''': [[DFF]] model name or ID<br>
+
'''Parameter 3''': [[DFF]] model name or ID of a ped<br>
 
'''Parameter 4''': Flag<br>
 
'''Parameter 4''': Flag<br>
 
'''Parameter 5''': Actor handle<br>
 
'''Parameter 5''': Actor handle<br>
 
'''Supports''': GTA3, Vice City, San Andreas<br>
 
'''Supports''': GTA3, Vice City, San Andreas<br>
  
This creates an actor in a passenger seat of a vehicle. Using this opcode requires [[0247]] or else the game would crash.
+
This creates an actor in a passenger seat of a vehicle. Using this opcode requires an existing vehicle and [[0247]] to load the model or else the game can crash. If you create an actor in a non-existent seat, the actor will still be created inside the vehicle but it will be invisible.
  
 
==Flags==
 
==Flags==

Revision as of 17:15, 28 August 2008

01C8=5,%1d% %2d% %3o% %4d% %5d%
Description: Creates an actor in a passenger seat of a vehicle
Parameter 1: Existing vehicle handle
Parameter 2: Ped type
Parameter 3: DFF model name or ID of a ped
Parameter 4: Flag
Parameter 5: Actor handle
Supports: GTA3, Vice City, San Andreas

This creates an actor in a passenger seat of a vehicle. Using this opcode requires an existing vehicle and 0247 to load the model or else the game can crash. If you create an actor in a non-existent seat, the actor will still be created inside the vehicle but it will be invisible.

Flags

The flag is the position of the seat that the actor will be created in.
0 Front right seat
1 Rear left seat
2 Rear right seat

Note

Sometimes this opcode is written as this:
01C8=5,%5d% %2d% %3o% %1d% %4d%
The parameters are mixed around. This depends on which sascm.ini file you use.
Sanny Builder by default: 01C8: 1@ = create_actor_pedtype 5 model #BFORI in_car 0@ passenger_seat 0

Keywords

create, actor, pedtype, model, vehicle