032B

From GTAMods Wiki
Revision as of 00:41, 29 June 2015 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

GTA III Vice City San Andreas CREATE_PICKUP_WITH_AMMO


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]
Valid object model ID number as defined in the IDE file; also acceptable is model's DFF name identified by a hash character
[int2]
Type
[int3]
Ammo count
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or -100.0 for ground z + 0.5 units)

Native analog

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.

Keywords

create, pickup, weapon, ammo