020C
Revision as of 07:50, 16 January 2015 by Spaceeinstein (talk | contribs) (Created page with "__NOTOC__ {{Icon|trilogy}} '''ADD_EXPLOSION''' <hr /> '''Description''' : Creates an explosion at a point '''Syntax''' : 020C: create_explosion [''int''] at [''flt1''] [''flt2...")
Description
- Creates an explosion at a point
Syntax
- 020C: create_explosion [int] at [flt1] [flt2] [flt3]
Parameter
- [int]
- Explosion type (see below)
- [flt1]
- X-coordinate
- [flt2]
- Y-coordinate
- [flt3]
- Z-coordinate
This opcode creates an explosion at a coordinates point. These are real explosions so they make sounds and cause damage. Opcode 0565 creates the same visual explosion without sounds.
Explosion types
GTA III
| Type | Enum | Notes |
|---|---|---|
| 0 | EXPLOSION_GRENADE | Was used in the original script |
| 1 | ||
| 2 | ||
| 3 | EXPLOSION_CAR | Was used in the original script |
| 4 | Exactly the same as type 3 | |
| 5 | EXPLOSION_HELI | Was used in the original script |
| 6 | ||
| 7 | ||
| 8 | ||
| 9 |
Vice City
| Type | Enum | Notes |
|---|---|---|
| 0 | EXPLOSION_GRENADE | Was used in the original script |
| 1 | EXPLOSION_MOLOTOV | Was used in the original script |
| 2 | EXPLOSION_ROCKET | Was used in the original script |
| 3 | EXPLOSION_CAR | |
| 4 | EXPLOSION_CAR_QUICK | Exactly the same as type 3 |
| 5 | EXPLOSION_BOAT | Exactly the same as type 3 |
| 6 | EXPLOSION_HELI | Was used in the original script |
| 7 | EXPLOSION_HELI2 | Exactly the same as type 6 |
| 8 | EXPLOSION_MINE | |
| 9 | EXPLOSION_BARREL | |
| 10 | EXPLOSION_TANK_GRENADE | |
| 11 | EXPLOSION_HELI_BOMB | Was used in the original script |
San Andreas
Keywords
add, create, explosion