0152
- Description
- Sets the zone's peds, gangs, and cops spawn density in car
- Syntax
- 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int]
- 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int10] [int11] [int]
- Parameter
- [string]
- Zone's name as defined in the ZONE section of an IPL or ZON file, must be type 0/1/2 for GTA III or type 2 for Vice City
- [int1]
- Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
- [int2]
- Density of pedestrian cars to spawn (default 10)
- [int3]
- Density of gang 0 car to spawn
- [int4]
- Density of gang 1 car to spawn
- [int5]
- Density of gang 2 car to spawn
- [int6]
- Density of gang 3 car to spawn
- [int7]
- Density of gang 4 car to spawn
- [int8]
- Density of gang 5 car to spawn
- [int9]
- Density of gang 6 car to spawn
- [int10]
- Density of gang 7 car to spawn (only for )
- [int11]
- 0 (any other value crashes the game, only for )
- [int]
- Density of cop cars to spawn
This opcode sets the zone's peds, gangs, and cops spawn density in car. It allows gang members to spawn as a driver and sometimes also a passenger in cars and is independent from opcode 015C, which spawns the gang on foot. By default, GTA III's type 0, 1, or 2 zones are in gta3.zon
and Vice City's type 2 zones are in info.zon
. The spawned gang cars use hardcoded models by default if models are not set by opcode 0236. The densities of gangs and cops have a range between 0 and 1000 and they must all add up to less than or equal to 1000 for them to spawn properly. 0 means they take up 0% of the random cars in the area and 1000 means they take up 100%.
Keywords
set, zone, gang, car, info
See also
- 015C, set zone ped info