Difference between revisions of "032B"
Jump to navigation
Jump to search
m |
(can work like 055B) |
||
Line 23: | Line 23: | ||
: [[CREATE_PICKUP_WITH_AMMO]] | : [[CREATE_PICKUP_WITH_AMMO]] | ||
− | This opcode spawns a pickup at a coordinates point that can be "collected" by the player. It is almost equivalent to opcode [[0213]] but with an additional parameter that sets the ammo count of the pickup. Using an ammo count of ''0'' creates a pickup equivalent to opcode 0213. The additional parameter makes pickup type 7 in GTA III and type 8 in Vice City useful — it sets the amount of money for the pickup type. | + | This opcode spawns a pickup at a coordinates point that can be "collected" by the player. It is almost equivalent to opcode [[0213]] but with an additional parameter that sets the ammo count of the pickup. Using an ammo count of ''0'' creates a pickup equivalent to opcode 0213. The additional parameter makes pickup type 7 in GTA III and type 8 in Vice City useful — it sets the amount of money for the pickup type. In Vice City, if the model of the pickup uses <code>clothesp.dff</code>, the ammo count value sets the text to display above the pickup, just like a [[055B|clothing pickup]] on which the ammo count value is based. |
== Keywords == | == Keywords == |
Revision as of 23:22, 6 July 2015
Description
- Creates a pickup with ammo
Syntax
- 032B: [var] = create_weapon_pickup [int1] [int2] ammo [int3] at [flt1] [flt2] [flt3]
Parameter
- [var]
- Variable to store the handle of the pickup
- [int1]
- [int2]
- [int3]
- Ammo count
- [flt1]
- X-coordinate
- [flt2]
- Y-coordinate
- [flt3]
- Z-coordinate (or -100.0 for ground z + 0.5 units)
Native analog
This opcode spawns a pickup at a coordinates point that can be "collected" by the player. It is almost equivalent to opcode 0213 but with an additional parameter that sets the ammo count of the pickup. Using an ammo count of 0 creates a pickup equivalent to opcode 0213. The additional parameter makes pickup type 7 in GTA III and type 8 in Vice City useful — it sets the amount of money for the pickup type. In Vice City, if the model of the pickup uses clothesp.dff
, the ammo count value sets the text to display above the pickup, just like a clothing pickup on which the ammo count value is based.
Keywords
create, pickup, weapon, ammo