Difference between revisions of "0874"
Jump to navigation
Jump to search
(Created page with "{{OpCode | games = {{Icon|SA}} | command = SET_ZONE_PED_POPULATION_TYPE | description = Bitflags that enable racial groups within the zone | syntax1 = {{Icon...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
| games = {{Icon|SA}} | | games = {{Icon|SA}} | ||
− | | command = | + | | command = SET_ZONE_POPULATION_RACE |
| description = Bitflags that enable racial groups within the [[zone]] | | description = Bitflags that enable racial groups within the [[zone]] | ||
− | | syntax1 = {{Icon|SA}} 0874: | + | | syntax1 = {{Icon|SA}} 0874: set_zone_population_race '[''string'']' to [''int1''] |
| syntax2 = {{Icon|SA}} 0874: set_zone_ped_population_type '[''string'']' to [''int1''] | | syntax2 = {{Icon|SA}} 0874: set_zone_ped_population_type '[''string'']' to [''int1''] | ||
− | | syntax3 = {{Icon|SA}} 0874: | + | | syntax3 = {{Icon|SA}} 0874: set_zone 'CHC1A' popcycle_group_for_peds_to 9 |
| p1t = '[''string'']' | | p1t = '[''string'']' | ||
| p1d = [[GXT]] ID for the [[zone]] | | p1d = [[GXT]] ID for the [[zone]] |
Latest revision as of 03:57, 8 July 2020
- Description
- Bitflags that enable racial groups within the zone
- Syntax
- 0874: set_zone_population_race '[string]' to [int1]
- 0874: set_zone_ped_population_type '[string]' to [int1]
- 0874: set_zone 'CHC1A' popcycle_group_for_peds_to 9
- Parameter
- Native analog
- SET_ZONE_POPULATION_RACE
Bitflags
PedRace_Black = 1 PedRace_White = 2 PedRace_Asian = 4 PedRace_Hispanic = 8
A ped model's race is determined by the first letter of the ped ID.
Black = B White = W Asian = O,I Hispanic = H
In a zone with a PedRace setting of 0, only peds that are neither Black, White, Asian, nor Hispanic will spawn; like MALE01, SFYPRO, SMYST1, SMYST2.
Dealer ped streamer logic:
1) current weather zone is 2 -> entry 3 from dealer ped group is selected (biker in SF) 2) population race & 1 != 0 -> entry 0 is selected (black) 3) population race & 2 != 0 -> entry 1 is selected (white) 4) otherwise, entry 2 is selected (hispanic)