Difference between revisions of "032B"
Jump to navigation
Jump to search
(can work like 055B) |
m |
||
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. In Vice City, if the model of the pickup uses <code>clothesp.dff</code>, the ammo count | + | 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 sets the text to display above the pickup, just like a [[055B|clothing pickup]] on which the value of the ammo count is based. |
== Keywords == | == Keywords == |
Revision as of 23:32, 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 sets the text to display above the pickup, just like a clothing pickup on which the value of the ammo count is based.
Keywords
create, pickup, weapon, ammo