0213

From GTAMods Wiki
Revision as of 21:17, 27 August 2008 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

0213=6,%1o% %2d% %3d% %4d% %5d% %6d%
Description: Creates a pickup
Parameter 1: DFF object model ID or name
Parameter 2: Type
Parameter 3: X-coordinate
Parameter 4: Y-coordinate
Parameter 5: Z-coordinate
Parameter 6: Pickup handle
Supports: GTA3, Vice City, San Andreas

This creates a pickup at a coordinate that can be "picked" up by the player. It creates a spinning object (with a glowing halo in GTA3 and Vice City) that disappears when the player goes through it. If the model is a useable weapon, the player will be able to pick it up and use it.

Types of Pickups

3 One-time pickup, once picked up it doesn't respawn
15 Replenishing pickup, once picked up, after a certain amount of time it will respawn
21 San Andreas only, 2-player rampage

Note

Sometimes this opcode is written as this:
0213=6,%6d% %1o% %2d% %3d% %4d% %5d%
The sixth parameter is placed in the beginning instead of at the end. This depends on which sascm.ini file you use.
Sanny Builder by default: 0213: 0@ = create_pickup #BAT type 15 at 0.0 0.0 0.0

Keywords

create, pickup