Difference between revisions of "0213"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<code>0213=6,%1o% %2d% %3d% %4d% %5d% %6d%</code><br>
+
{{OpCode
'''Description''': Creates a pickup<br>
+
| ini        = 0213=6,%6d% %1o% %2d% %3d% %4d% %5d%
'''Parameter 1''': [[DFF]] object model ID or name<br>
+
| description = Creates a pickup
'''Parameter 2''': Type<br>
+
| p1          = [[DFF]] object model ID or name
'''Parameter 3''': X-coordinate<br>
+
| p2          = Type
'''Parameter 4''': Y-coordinate<br>
+
| p3          = X-coordinate
'''Parameter 5''': Z-coordinate<br>
+
| p4          = Y-coordinate
'''Parameter 6''': Pickup handle<br>
+
| p5          = Z-coordinate
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| p6          = Pickup handle
 +
| game        = GTA3, Vice City, San Andreas
 +
| native      = [[CREATE_PICKUP]]
 +
}}
 +
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.
  
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.
+
[[Sanny Builder]] example:<source lang="scm">0213: 0@ = create_pickup #INFO type 3 at 100.0 -10.0 12.5</source>
 +
 
 +
== Types of Pickups ==
 +
{|{{Prettytable}}
 +
|-
 +
|0  ||unused
 +
|-
 +
|1  ||unpickable
 +
|-
 +
|2  ||item pickup, respawn time 30s, respawn distance 15m
 +
|-
 +
|3  ||item pickup, does not respawn.
 +
|-
 +
|4  ||item picked-up, does not respawn.
 +
|-
 +
|5  ||item pickup, does not respawn.
 +
|-
 +
|6  ||unpickable
 +
|-
 +
|7  ||unpickable
 +
|-
 +
|8  ||item picked-up, does not respawn.
 +
|-
 +
|9 ||proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs
 +
|-
 +
|10 ||proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs
 +
|-
 +
|11 ||proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs
 +
|-
 +
|12 ||proximity bomb?, selfdestruct when player in proximity 40m, explodes upon contact with vehs
 +
|-
 +
|13 ||item photo-op, fake pickup drops slowly down, real visible when photographed.
 +
|-
 +
|14 ||vehicle pickup, drive thru it to make it dissapear, does not respawn.
 +
|-
 +
|15 ||item pickup, respawns after time.
 +
|-
 +
|16 ||unpickable, (originally property)
 +
|-
 +
|17 ||shows cancel popup. (originally property)
 +
|-
 +
|18 ||paycash pickup, pay amount to make it dissapear. (originally property)
 +
|-
 +
|19 ||getcash pickup, get amount to make it dissapear.
 +
|-
 +
|20 ||snapshot pickup, photograph it to make it dissapear, adds 1 snapshot collected.
 +
|-
 +
|21 ||2nd player pickup, press second controller to make it dissapear.
 +
|-
 +
|22 ||invisible
 +
|-
 +
|23 ||unpickable
 +
|-
 +
|24 ||unpickable
 +
|-
 +
|25 ||unpickable
 +
|-
 +
|26 ||unpickable
 +
|-
 +
|27 ||unpickable
 +
|-
 +
|28 ||unpickable
 +
|-
 +
|29 ||unpickable
 +
|-
 +
|30 ||unpickable
 +
|-
 +
|31 ||unpickable
 +
|}
  
==Types of Pickups==
+
== Notes ==
0:  -unused<br>
+
The above format is more commonly used. The actual format of this opcode is in order:<br>
1:  -unpickable<br>
+
<code>0213=6,%1d% %2o% %3d% %4d% %5d% %6d%</code><br>
2:  -item pickup, respawn time 30s, respawn distance 15m<br>
+
The format to use depends on which INI file you use.
3:  -item pickup, does not respawn.<br>
 
4: -item picked-up, does not respawn.<br>
 
5:  -item pickup, does not respawn.<br>
 
6:  -unpickable<br>
 
7:  -unpickable<br>
 
8:  -item picked-up, does not respawn.<br>
 
9:  -proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs<br>
 
10: -proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs<br>
 
11: -proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs<br>
 
12: -proximity bomb?, selfdestruct when player in proximity 40m, explodes upon contact with vehs<br>
 
13: -item photo-op, fake pickup drops slowly down, real visible when photographed.<br>
 
14: -vehicle pickup, drive thru it to make it dissapear, does not respawn.<br>
 
15: -item pickup, respawns after time.<br>
 
16: -unpickable, (originally property)<br>
 
17: -shows cancel popup. (originally property)<br>
 
18: -paycash pickup, pay amount to make it dissapear. (originally property)<br>
 
19: -getcash pickup, get amount to make it dissapear.<br>
 
20: -snapshot pickup, photograph it to make it dissapear, adds 1 snapshot collected.<br>
 
21: -2nd player pickup, press second controller to make it dissapear.<br>
 
22: -invisible<br>
 
23: -unpickable<br>
 
24: -unpickable<br>
 
25: -unpickable<br>
 
26: -unpickable<br>
 
27: -unpickable<br>
 
28: -unpickable<br>
 
29: -unpickable<br>
 
30: -unpickable<br>
 
31: -unpickable
 
  
==Note==
+
In Sanny Builder, this opcode is equivalent to the command '''Pickup.Create()'''.
Sometimes this opcode is written as this:<br>
+
Example: <source lang="scm">Pickup.Create(0@, #INFO, 3, 100.0, -10.0, 12.5)</source>
<code>0213=6,%6d% %1o% %2d% %3d% %4d% %5d%</code><br>
 
The sixth parameter is placed in the beginning instead of at the end. This depends on which sascm.ini file you use.<br>
 
[[Sanny Builder]] by default:
 
<code>0213: 0@ = create_pickup #BAT type 15 at 0.0 0.0 0.0</code>
 
  
==Keywords==
+
== Keywords ==
 
create, pickup
 
create, pickup
  
==External Link==
+
== External Link ==
*[http://www.gtaforums.com/index.php?showtopic=205020 Generic SA SCM Documentation]
+
* {{GTAF|205020|Generic SA SCM Documentation}}
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 22:30, 4 February 2009

{{{games}}}


Description
Creates a pickup
Syntax
{{{syntax1}}}
Parameter
Native analog
CREATE_PICKUP

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.

Sanny Builder example:

0213: 0@ = create_pickup #INFO type 3 at 100.0 -10.0 12.5

Types of Pickups

0 unused
1 unpickable
2 item pickup, respawn time 30s, respawn distance 15m
3 item pickup, does not respawn.
4 item picked-up, does not respawn.
5 item pickup, does not respawn.
6 unpickable
7 unpickable
8 item picked-up, does not respawn.
9 proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs
10 proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs
11 proximity bomb?, selfdestruct when player driving in proximity 20m, explodes upon contact with vehs
12 proximity bomb?, selfdestruct when player in proximity 40m, explodes upon contact with vehs
13 item photo-op, fake pickup drops slowly down, real visible when photographed.
14 vehicle pickup, drive thru it to make it dissapear, does not respawn.
15 item pickup, respawns after time.
16 unpickable, (originally property)
17 shows cancel popup. (originally property)
18 paycash pickup, pay amount to make it dissapear. (originally property)
19 getcash pickup, get amount to make it dissapear.
20 snapshot pickup, photograph it to make it dissapear, adds 1 snapshot collected.
21 2nd player pickup, press second controller to make it dissapear.
22 invisible
23 unpickable
24 unpickable
25 unpickable
26 unpickable
27 unpickable
28 unpickable
29 unpickable
30 unpickable
31 unpickable

Notes

The above format is more commonly used. The actual format of this opcode is in order:
0213=6,%1d% %2o% %3d% %4d% %5d% %6d%
The format to use depends on which INI file you use.

In Sanny Builder, this opcode is equivalent to the command Pickup.Create().

Example:

Pickup.Create(0@, #INFO, 3, 100.0, -10.0, 12.5)

Keywords

create, pickup

External Link