022B

From GTAMods Wiki
Revision as of 15:23, 11 January 2019 by Parik (talk | contribs) (Add 022b)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Contents

GTA III Vice City San Andreas SWITCH_PED_ROADS_OFF


Description
Prevents pedestrians from spawning or traversing in an area
Syntax
San Andreas 022b: switch_ped_roads_off [flt1] [flt2] [flt3] to [flt4] [flt5] [flt6]
GTA III Vice City 022b: create_forbidden_for_peds_cube [flt1] [flt2] [flt3] [flt4] [flt5] [flt6]
Parameter
[flt1]
Top Left X-Coordinate
[flt2]
Top Left Y-Coordinate
[flt3]
Top Left Z-Coordinate
[flt4]
Bottom Right X-Coordinate
[flt5]
Bottom Right Y-Coordinate
[flt6]
Bottom Right Z-Coordinate
Native analog
SWITCH_PED_ROADS_OFF

This opcode is used to temporarily disables nodes from the pedestrians path, which causes them to not spawn in these locations.

Example

This will prevent pedestrians from spawning in the Cochrane Dam area (the part where "The Exchange" takes place)

022B: create_forbidden_for_peds_cube -942.5625 337.0 10.0 -953.5625 361.375 30.0