02D6
Jump to navigation
Jump to search
- Description
- Checks if the character is shooting in the area
- Syntax
- 02D6: actor [char handle] shooting_in_area [flt1] [flt2] [flt3] [flt4] [int]
- 02D6: actor [char handle] fires_weapon [int] in_rectangle_cornerA [flt1] [flt2] cornerB [flt3] [flt4]
- Parameter
- [char handle]
- The handle of the character
- [flt1]
- X-coordinate of one corner of area
- [flt2]
- Y-coordinate of one corner of area
- [flt3]
- X-coordinate of other corner of area
- [flt4]
- Y-coordinate of other corner of area
- [int]
- Show cylindrical marker
This conditional opcode returns true if the character while on foot fires a bullet, throws a projectile, or uses a flamethrower in the rectangular area. It only briefly returns true so a loop with a short wait is needed to detect this. Its area detection and cylindrical marker behave similarly to opcode 0056. This opcode was never called in the original script of GTA III.
Keywords
check, character, actor, shooting, fires, weapon, area, rectangle