Difference between revisions of "01C8"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''CREATE_CHAR_AS_PASSENGER'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| command    = CREATE_CHAR_AS_PASSENGER
'''Description'''
+
| description = Creates a character in the passenger seat of the vehicle
: Creates a character in the passenger seat of a vehicle
+
| syntax1    = 01C8: [''var''] = create_actor_pedtype [''int1''] model [''int2''] in_car [''car handle''] passenger_seat [''int3'']
'''Syntax'''
+
| p1t        = [''car handle'']
: 01C8: [''var''] = create_actor [''int1''] [''int2''] in_car [''car handle''] passenger_seat [''int3'']
+
| p1d        = The handle of the vehicle
'''Parameter'''
+
| p2t        = [''int1'']
: [''var'']
+
| p2d        = [[Ped type]]
:: Variable to store the handle of the character
+
| p3t        = [''int2'']
: [''int1'']
+
| p3d        = Valid model index as defined in the [[PEDS|PEDS section]] of the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
:: [[Ped type]]
+
| p4t        = [''int3'']
: [''int2'']
+
| p4d        = [[#Seat position|Seat position]]
:: Valid character model ID number as defined in the [[PEDS|PEDS section]] of the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
+
| p5t        = [''var'']
: [''car handle'']
+
| p5d        = Variable to store the handle of the character
:: The handle of the vehicle
+
| native      = [[CREATE_CHAR_AS_PASSENGER]]
: [''int3'']
+
}}
:: [[01C8#Seat position|Seat position]]
 
'''Native analog'''
 
: [[CREATE_CHAR_AS_PASSENGER]]
 
  
 
Similar to opcode [[009A]], this opcode creates a character in the passenger seat of a vehicle. Using this opcode requires an existing vehicle and opcode [[0247]] to load the model of the character or else the game could crash. Characters can even be created in wrecked vehicles as long as the vehicle exists. Without further additions, if the player enters the vehicle with the character, the character will exit the vehicle. Additional opcodes like [[0526]] are needed to prevent them from doing that.
 
Similar to opcode [[009A]], this opcode creates a character in the passenger seat of a vehicle. Using this opcode requires an existing vehicle and opcode [[0247]] to load the model of the character or else the game could crash. Characters can even be created in wrecked vehicles as long as the vehicle exists. Without further additions, if the player enters the vehicle with the character, the character will exit the vehicle. Additional opcodes like [[0526]] are needed to prevent them from doing that.
  
 
If you create a character in a non-existent seat, the character will still be created inside the vehicle but it will be invisible. Certain actions that would normally make the character voluntarily exit the vehicle won't work but opcodes can force the character to exit the vehicle.
 
If you create a character in a non-existent seat, the character will still be created inside the vehicle but it will be invisible. Certain actions that would normally make the character voluntarily exit the vehicle won't work but opcodes can force the character to exit the vehicle.
}}</onlyinclude>
 
  
 
== Seat position ==
 
== Seat position ==
The flag is the position of the seat that the character will be created in.
+
{|class="wikitable center-col-1"
{| {{prettytable}}
+
!Seat ||Four-seat ||Two-seat
! Flag
 
! Four-seat
 
! Two-seat
 
 
|-
 
|-
| -1 || colspan="2" style="text-align:center" | the next available seat
+
|-1 ||colspan="2" {{a|c}} |the next available seat
 
|-
 
|-
| 0 || front right seat || rear seat
+
|0 ||front right seat ||rear seat
 
|-
 
|-
| 1 || rear left seat ||
+
|1 ||rear left seat ||
 
|-
 
|-
| 2 || rear right seat ||
+
|2 ||rear right seat ||
 
|}
 
|}
  
 
== Keywords ==
 
== Keywords ==
 
create, actor, character, pedtype, model, vehicle, car, passenger
 
create, actor, character, pedtype, model, vehicle, car, passenger
 
[[Category:OpCodes]]
 

Latest revision as of 03:45, 4 December 2016

GTA III Vice City San Andreas CREATE_CHAR_AS_PASSENGER


Description
Creates a character in the passenger seat of the vehicle
Syntax
01C8: [var] = create_actor_pedtype [int1] model [int2] in_car [car handle] passenger_seat [int3]
Parameter
[car handle]
The handle of the vehicle
[int1]
Ped type
[int2]
Valid model index as defined in the PEDS section of the IDE file; also acceptable is model's DFF name with a hash character
[int3]
Seat position
[var]
Variable to store the handle of the character
Native analog
CREATE_CHAR_AS_PASSENGER

Similar to opcode 009A, this opcode creates a character in the passenger seat of a vehicle. Using this opcode requires an existing vehicle and opcode 0247 to load the model of the character or else the game could crash. Characters can even be created in wrecked vehicles as long as the vehicle exists. Without further additions, if the player enters the vehicle with the character, the character will exit the vehicle. Additional opcodes like 0526 are needed to prevent them from doing that.

If you create a character in a non-existent seat, the character will still be created inside the vehicle but it will be invisible. Certain actions that would normally make the character voluntarily exit the vehicle won't work but opcodes can force the character to exit the vehicle.

Seat position

Seat Four-seat Two-seat
0 front right seat rear seat
1 rear left seat
2 rear right seat

Keywords

create, actor, character, pedtype, model, vehicle, car, passenger